Skip to content

Instantly share code, notes, and snippets.

@stonean
Created July 27, 2011 23:49
Show Gist options
  • Save stonean/1110617 to your computer and use it in GitHub Desktop.
Save stonean/1110617 to your computer and use it in GitHub Desktop.
Potential Slim syntax for JSON output
/ Slim source
project Slim JSON
url = slim_url
contributors
- people
username = username
Where slim_url is a method that returns 'https://github.com/stonean/slim'
and people = [ { username: 'stonean' }, { username: 'minad' }, { username: 'fredwu' } ]
/ Result
{ "project": "Slim JSON",
"url": "https://github.com/stonean/slim",
"contributors": [
{ "username": "stonean" },
{ "username": "minad" },
{ "username": "fredwu" }
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment