Created
November 18, 2014 10:39
-
-
Save fasterthanlime/2a6be115b45995407ecc to your computer and use it in GitHub Desktop.
Mozilla Parser API is a lot more verbose than XML
This file contains hidden or 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
{ | |
"type": "Program", | |
"body": [ | |
{ | |
"type": "VariableDeclaration", | |
"declarations": [ | |
{ | |
"type": "VariableDeclarator", | |
"id": { | |
"type": "Identifier", | |
"name": "a" | |
}, | |
"init": { | |
"type": "ObjectExpression", | |
"properties": [ | |
{ | |
"type": "Property", | |
"key": { | |
"type": "Identifier", | |
"name": "ruby" | |
}, | |
"value": { | |
"type": "Literal", | |
"value": "Ruby", | |
"raw": "\"Ruby\"" | |
}, | |
"kind": "init" | |
}, | |
{ | |
"type": "Property", | |
"key": { | |
"type": "Identifier", | |
"name": "cpp" | |
}, | |
"value": { | |
"type": "Literal", | |
"value": "C++", | |
"raw": "\"C++\"" | |
}, | |
"kind": "init" | |
} | |
] | |
} | |
} | |
], | |
"kind": "var" | |
} | |
] | |
} |
This file contains hidden or 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
var a = { | |
ruby: 'Ruby', | |
cpp: 'C++' | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment