JSON Structure Error : Array of Mixed Primitive types is not supported
0
Hello, I am creating a Rest Service response with JSON Structure, Somehow i am facing an error : Array of mixed primitive types is not supported. The response i received from the REST Service is something like below : { "Results": { "Header": [ { "Name": "Center", "Type": { "GenericType": "System.String" }, "Label": { "Value": "Factory" } }, { "Name": "IsCenter", "Type": { "GenericType": "System.Boolean" }, "Label": { "Value": "Sequence" } } ], "Data": [ [ "Exploratrytest_WC1", false ], [ "PO39", true ] ] } } Here in above response i am currently focused on Data array which is Array of arrays and having string and Boolean type. I am doing this to get this extracted data and bind it to dropdown. Mendix Studio Pro Version : 10.8.6 Could someone please guide me here how we can design the JSON structure for above use case? Or is there any other way to get this work? Screenshot is attached for reference.
asked
Darshan Kapadnis
1 answers
0
Mixing data types in JSON arrays is not that common and is - as stated in the error message - not supported.
If you really need to support this structure you will have to fallback to Java.