4 ms·
The deeply nested JSON (9 levels) seems difficult to understand without some kind of schema/detailed docs - though maybe domain users are already familiar with
by 6ren 14y ago
The deeply nested JSON (9 levels) seems difficult to understand without some kind of schema/detailed docs - though maybe domain users are already familiar with the underlying data's schema? Part of the problem is intrinsic data complexity, aside from EDI format. https://eligibleapi.com/restful-json-api/response https://eligibleapi.com/restful-json-api/response
Also, it's simulating JSON [] lists as objects with fields named "Item #1", "Item #2", ... Seems an odd choice. e.g.
"Deductible": {
"Item #1": {
"Calendar Year": "1500"
},
"Item #2": {
"Remaining": "500"
}
},
EDIT: To clarify, below is the same snippet using JSON lists. The list syntax gives schema information (i.e. that it is a list), and is standard, readable and concise. Most parsers will map it to a list in the destination language, making it more natural to address and loop over; i.e. easier to process in general.
"Deductible": [
{
"Calendar Year": "1500"
},
{
"Remaining": "500"
}
],
- kategleason 14y agoWe want to make the JSON as simple as possible to parse. I'll be posting full data sets to the documentation shortly. Feel free to email me with how you would prefer to see it handled.
- babel 14y agoAs already said in a previous comment: << To be fully honest, it has been an internal debate: "use or not use array" ;-) I personally wanted to use them... so, thanks for your feedback ;-) >> @Kat, this is the 2nd point for using array ;-)
- kategleason 14y agoThree points from Max, lets do it!
- kategleason 14y agoimplemented! thanks.