I am writing a project where I need to transform Json from one format to another. I am new to json. Any lead will be appreciated.
Input Data:
{
"sorts": [
{
"name": "firstName",
"sortOrder": "Ascending"
}
],
"page": "1",
"pageSize": "10",
"filters": [
{
"name": "studentIds",
"type": "InList",
"value": "(S001,S002,S004)"
},
{
"name": "assignmentStatus",
"type": "InList",
"value": "(Completed, In Progress)"
}
]
}
Target Data:
{
"orderBy": "firstName",
"sortOrder": "Ascending",
"page": "1",
"pageSize": "10",
"studentIds": [
"S001",
"S002",
"S003"
],
"assignmentStatus": [
"Completed",
"In Progress"
]
}
Top comments (1)
If you are programming Java, my open source project can do the job.
github.com/octomix/josson
Output: