Created
July 27, 2011 23:49
-
-
Save stonean/1110617 to your computer and use it in GitHub Desktop.
Potential Slim syntax for JSON output
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/ 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