I know that there are utilities out there that will take a large, nested JSON object, and generate the Java POJOs for it.
But are there any utilities that will take that same JSON, and assuming that POJOs already exist, create getter and setter statements, to actually populate the POJOs with the data in the JSON?
Given this small JSON sample, I am looking for a utility to generate:
data.setSiteId(422950);
And so on. It is a very large JSON object.
{
"data": {
"siteId": 422950,
"protocol": 1,
"networkId": 253762,
"comsNetworkId": 0,
"circuitIds": [
"A",
"B",
"C",
"D",
"E",
"F"
],
"comsCircuitId": "",
"corpId": "",
"networkAccessType": 1,
"localExchangeCarrier": 19,
"ldCarrier": 1,
"isdnServiceType": 4,
"primarySwitchType": 6,
"t1PriTimeslots": "",
"centralOfficeSwitchType": 5,
"framingMode": 4,
"signaling": 7,
"encoding": 4,
"isdnLineFromCentrex": false,
"sharedDALTestPassed": false,
"t120": false
}
}