Skip to content
Dzonatas edited this page Feb 5, 2013 · 3 revisions

If we further the discussion in XML versus RDF for serialization without HTML formats for higher-level access then, [JavaScript Object Notation is significant. JSON is also useful for ReSTful API design that replaces binded ABI wrappers (or glue code) for JS or ECMAScript.

XML lets us embed or script JSON:


<script type="text/json">
{
  "book":[
    { "title":  "How to Win Monkeys and Influence Groggers" ,
      "author": "The Cannibals" ,
      "date":   "2012 MIT"
    } ,
    { "title":  "The Carrot and The Snowman" ,
      "author": "Drake" ,
      "date":   "MCMXCIX"
    }
  ]
}
</script>

That technique lets us optionally transcode JSON to XML, or lets the backend CLI automate that step. It also lets us replace ".class ..." enumerations with ".get [URI] ..." for separation of form and function, especially where several techniques and profiles are available.

Clone this wiki locally