The Ashes

Technology, Science and other news
September 9, 2009

Getting hyper about JSON namespacing

Posted by : admin
Filed under : General

Kris Zyp, JSON hero, has been cooking up some more good stuff on his path to reinventing a new path to all.

In JSON namespacing he discusses JSON Hyper Schema which aims to cure JSON from XML namespacing colon cancer.

JSON Hyper Schemas can be referenced from instances by Link headers or media type parameters. A simple example illustrates how JSON properties have universally locatable definitions:


  2. Content-Type: application/json; schema=
  3. [
  4.   {“title”: “Oliver Twist”, “price”: 16.99},
  5.   {“title”: “Robinson Crusoe”, “price”: 15.99}
  6. ]

This message gives the authoritative URI for the schema. With a look at the schema, we can see how each property has a corresponding definition with an authoritative URI as well:


  2. Content-Type: application/schema+json; schema=
  3. {
  4.   “properties”: {
  5.      “title”: {“type”: “string”, “description”: “The title of the book”},
  6.      “price”: {“type”: “number”, “description”: “The price of the book in US”},
  7.   }
  8. }

JSON Hyper Schema is a sufficient building block upon which we can realize the goals of namespacing, namely, meanings from distributed parties can be authoritatively ascribed to elements of a data structure with property name sharing and conflict resolution control. What is elegant about this approach is that basically nothing needs to be modified in the actual instance data structures themselves. URI attribution is done through media type parameters in combination with schemas. The actual data stays unchanged, it is still the original simple, easy to read, compact JSON. JSON namespacing not only fits with JSON technically, but it fits in spirit: data is simple and light.

Tags :

No Comments

(will not be published) (required)
(opitional) EN ES IT DE PT CZ FR RU
April 2021




There are many online poker site where you can play but at you can play the poker games with all the knowledge you need related to the game with the poker school available in both the English and Chinese language.

Super Casino

Now you can bet on any sports and any sporting events from all the comfort from your home. Bet770 allows you to bet on any events and match with in just 3 clicks. They also offers great odds on football betting for every premier and champions league match. Get £50 free in bets when you register.

Bingo770, offering best online bingo games with £7.70 free no deposit Bonus!