Skip to content

Instantly share code, notes, and snippets.

@mamund
Created June 14, 2013 14:22
Show Gist options
  • Save mamund/5782198 to your computer and use it in GitHub Desktop.
Save mamund/5782198 to your computer and use it in GitHub Desktop.
Adding "object" with metadata wrapper to Collection+JSON
// sample links array
{
"collection" :
{
"version" : "1.0",
"href" : URI,
"items" :
[
{
"href" : URI,
"object" : {"schema" : URI, "graph" : {...}}, // <--- object w/ assoc. schema
"data" : [ARRAY],
"links" : [ARRAY]
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment