Added logic to JSON serialize and deserialize NSObject

Signed-off-by: rpgmaker <olamide.bakre@gmail.com>