You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are no annotations added for test class, I will add up one if it will give class name in seriazed json but I could not get it. I checked with custom handling but that does not specify class name representation in json. Also if there will be hierarchy for classes for example,
{ "TestOne" : { "Name":"ABC", "Description": {"size":"500px", "color":"blue"}}}
will it be possible by using any of the annotations in per class, in case of above example for class TestOne and Description. Please let me know.
I am trying to serialize object to json using following code but unable to get class name in json as root name.
$obj = new Test(array("Name"=>"ABC");
when I try to serialize it with jms serializer,
it shows json output as { "Name" : "ABC" } , Expected output is as { "Test" : { "Name" : "ABC"} }
Please help me for this solution.
The text was updated successfully, but these errors were encountered: