Problem with integration. Our customer need JSON data without array mark “[” “]”.
We are using standard API page with XSL transformation + virtual output datastructure.
Standard API output from Origam is:
(there is only one child in structure)
{
"capacity4": null,
"capacity1": 0.0,
"distanceCost": null,
"maximumDistance": null,
"mustFinishBy": null,
"specialCodes": null,
"capacity5": null,
"maximumDistancePerLeg": null,
"destination": [
{
"street": "Poděbradská 666",
"postalCode": "88888",
"longitudeX": 13.91685,
"locationId": "Depo Sklad",
"city": "Jirny",
"latitudeY": 49.11772
}
],
}
Our partner needs output like this:
{
"capacity4": null,
"capacity1": 24000.0,
"distanceCost": null,
"maximumDistance": null,
"mustFinishBy": null,
"specialCodes": null,
"capacity5": null,
"maximumDistancePerLeg": null,
"destination": {
"street": "Poděbradská 666",
"postalCode": "88888",
"longitudeX": 13.91685,
"locationId": "Depo Sklad",
"city": "Jirny",
"latitudeY": 49.11772
},
}
Is there any way to get this output from Origam datapage API ?
Thanks Jiri