In ad hoc JSON—not just in the documents served by the Twitter API—it’s customary to use semantic descriptors as object keys:
{"name" : "Jenny Gallegos"}
(JSON-LD, which I’ll cover in an upcoming section, is based on this convention.)
Similarly, in ad hoc XML documents, the tag names often correspond to semantic descriptors:
<person> <name>Jenny Gallegos</name> </person>
But those last two are only conventions. Clients can’t rely on them in general. That’s one reason I don’t think you should design APIs using ad hoc JSON or XML.
--
You received this message because you are subscribed to the Google Groups "Hypermedia Web" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hypermedia-we...@googlegroups.com.
To post to this group, send email to hyperme...@googlegroups.com.
Visit this group at https://groups.google.com/group/hypermedia-web.
For more options, visit https://groups.google.com/d/optout.