3 ms·
Stop trying to RFC schemas for JSON. It's supposed to be undefined and flexible. JSON isn't an ORM. Data structures aren't universal.
by alexkavon 12y ago
Stop trying to RFC schemas for JSON. It's supposed to be undefined and flexible. JSON isn't an ORM. Data structures aren't universal.
- bdcravens 12y agoEveryone places some constraints on their data. No API just shoots out data willy-nilly. These are specific use-cases, and in no way encumber other uses of JSON. Personally, I'd love to see a universal format that all database vendors use, instead of vendor-specific DDL.
- twa927 12y agoBut what about reimplementing the same concept over and over again? Like if your API returns tables, then you need to invent a format, write documentation instead of linking to it etc. On the other hand, such standarizations tend to become overengineered monstrosities that no one wants to use in the real world. An example of this seems to be JSON HAL which I decided is too complex to implement in an API. [0] http://stateless.co/hal_specification.html http://stateless.co/hal_specification.html