-
-
Save pocke/c7747da73d79ecde4dad to your computer and use it in GitHub Desktop.
json parser
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
module J | |
module_function | |
def parse(j);eval(j) end | |
def null;nil end | |
end | |
p J.parse(STDIN.read) |
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
{ | |
"foo": { | |
"bar": "hoge", | |
"foobar": [1,2,3] | |
}, | |
"piyo": null, | |
"poyo": 10e7, | |
"pu-yo": -1 | |
} |
Author
pocke
commented
Aug 11, 2015
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment