Added all the code for obj2json back
Added json class to test
added test for object to JsonString