Skip to content

Instantly share code, notes, and snippets.

@chjj
Created March 18, 2011 07:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chjj/875748 to your computer and use it in GitHub Desktop.
Save chjj/875748 to your computer and use it in GitHub Desktop.
[obj] [structure] [property] [value]
test_article none title A Test Article
test_article none content Hello world!
test_article tags 0 misc
test_article tags 1 etc
test_article comments.0 poster_name AvgJoe
test_article comments.0 content This article is amazing
test_article comments.1 poster_name SuperNerd
test_article comments.1 content No it's not!
another_article none title Another Article
another_article none content Yet another article...
another_article tags 0 misc
another_article tags 1 development
In JSON:
{
"test_article": {
"title": "A Test Article",
"content": "Hello world!",
"tags": ["misc", "etc"],
"comments": [
{
"poster_name": "AvgJoe",
"content": "This article is amazing"
},
{
"poster_name": "SuperNerd",
"content": "No it's not!"
}
]
},
"another_article": {
"title": "Another Article",
"content": "Yet another article...",
"tags": ["misc", "development"]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment