09-30-2026 02:26 AM
Hi Everyone
Currently, the API is returning the Details field as an array of JSON strings, for example:
"Details": [
"{\"ID\":706,\"Item\":\"012026032100238\",\"User\":\"15314,SUPERVISOR\",\"DT\":\"14-04-2026 13:32:21\"}"
]
For Android integration, I need the API to return Details as a proper JSON array of objects instead of strings.
The expected response format is:
{
"code": 200,
"message": "Details fetched successfully",
"data": {
"md": {
"Name": "SR-RM-F-103",
"Partition": "1",
"Partition_Qty": "25",
"ID": "706"
},
"Details": [
{
"ID": 706,
"Item": "012026032100238",
"User": "15314,SUPERVISOR",
"DT": "14-04-2026 13:32:21"
},
{
"ID": 706,
"Item": "012026032100240",
"User": "15314,SUPERVISOR",
"DT": "14-04-2026 13:35:32"
}
]
}
}
In LabVIEW, please ensure that each JSON object is added directly to the Details JSON array. It should not be converted/flattened to a string before adding it to the array.
The final JSON should be flattened to a string only once, at the end, when sending the HTTP response.
This will allow the Android application to directly consume the Details array without additional JSON parsing.
Solved! Go to Solution.
09-30-2026 04:49 AM
JSONtest package in VIPM is a good help.