by 6ren · 14y ago · 0 comments
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"
}
],@Kat, this is the 2nd point for using array ;-)