4 ms·
JSON API – A Specification for Building APIs in JSON
- ainar-g 10y agoTo me this looks a lot like XHTML/XML serialized into JSON. I just don't see the benefits.
- melvinram 10y agoPreviously posted numerous times: https://news.ycombinator.com/item?id=5653706 https://news.ycombinator.com/item?id=5653706 (135 comments) https://news.ycombinator.com/item?id=9280058 https://news.ycombinator.com/item?id=9280058 (107 comments)
- melvinram 10y agoIn fact, one of those posts were by the submitter of this post. On the surface, this looks like a way to game the system of collecting points by posting things that are bound to be voted up a lot.
- bdcravens 10y agoA quick scan of history shows the same thing (for example, I saw jwt.io submitted more than once, so I suspect this is a strategy)
- lobo_tuerto 10y agoOr just resubmitting stuff that was deemed useful back then, and see if it still is, reach new users. I really like when someone reposts something that was popular a while back but I just missed it completely.
- iLoch 10y agoOh boy, please don't ever build an API like this.
- niftich 10y agoThis is a hypermedia-optional, not-quite-RPC, not-quite-REST style spec that actually corresponds rather well with the kinds of JSON-on-the-wire, HTTP-as-a-protocol APIs that people in the 2010s tend to cook up. Their FAQ backs this up by saying: "(...) JSON API is an attempt to formalize similar ad hoc client-server interfaces that use JSON as an interchange format." Because this style of HTTP API is very common, this spec is more useful than it may seem. It's no secret that most "RESTful" APIs are not REST because hypermedia is an afterthought or missing completely. Specs like HAL and JSON-LD are intense in the sense that the problem domain requires careful ponderation, so most people don't go that route and never reach level 3 of the Richardson Model [1]. XML has fallen out of favor, JSON has schemas now (wow), RPC hasn't become fashionably mainstream again (although specs like gRPC, protobuf, Thrift have been trying). Code generators and WSDL-reimaginings like Swagger and RAML make it easy to spew JSON across the wire, so this spec forms a useful baseline, for sanity's sake. [1] http://martinfowler.com/articles/richardsonMaturityModel.html http://martinfowler.com/articles/richardsonMaturityModel.htm...
- abritinthebay 10y agoThere's trend with a lot of "standards" right now to pretend they are somehow anti-bikesheding (like standardJS does) when in fact they are yet another cause of bikesheding. It's an arrogant, and quite silly, thing to sell as a "feature". What it tells me is there is likely a ton of not very well thought through choices that are polarizing and have no real justification other than the author(s) thought it was a good idea at the time. In fact I find it's often a sign I should avoid whatever system it is (and I've generally been proven correct, long term).
- ChoHag 10y agoAn Application Programming Interface? Isn't that sort of like Calling Procedures Remotely?