{
"student": [
{
"name": "TEST",
"id": "1234",
"@class" : "10"
}
],
"student": [
{
"name": "TEST12",
"id": "1235",
"@class" : "12"
}
]
}
How to generate the JSON like this from classObj or any other way?