2 ms·
I have written an app for the menu of my university's canteen. The JSON API that I used returned the meals as fields of a document where the order of the fields
by cypressious 7y ago
I have written an app for the menu of my university's canteen. The JSON API that I used returned the meals as fields of a document where the order of the fields was the actual display order. It took me a while to even find an implementation of a JSON parser that keeps the order of the fields.
- hobofan 7y agoI would assume that any decent JSON parser has at least the option to keep the order of the fields. Especially for CLI tools that automatically add fields to a JSON file thats usually edited by a user e.g. package.json, I feel that it's absolutely crucial.