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
| #!/user/bin/env python | |
| import json | |
| import sys | |
| from types import * | |
| def cpp_type(value): | |
| if type(value) is IntType: | |
| return 'int' | |
| elif type(value) is FloatType: |
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
| <?php | |
| require 'json.php'; | |
| $json = new JSON; | |
| $json->foo->bar->baz = "foo"; | |
| $json->foo->biz = "test"; | |
| $json->baz = array(); | |
| $json->baz[1] = "testing"; |