Hi all,
I want to genrate following JSON dataobject using org.json.simple.JSONObject
, how to do it in java?
{
friends : [
{
name: 'David',
interests: 'Cooking',
},
{
name: 'Charles',
interests: 'Hiking',
},
{
name: 'Mary',
interests: 'Football',
},
]
}
If code snipet is provided then that will be really helpful!
Regards, Abhi