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
| #!/usr/bin/env ruby | |
| # More often than not at @RTR_tech, our ruby layer is a pass-through from our | |
| # services to our client application. In those cases, it doesn't make much | |
| # sense to parse the JSON string. | |
| # | |
| # Other times, however, we want to work with the objects that come back, so | |
| # like good ruby developers, we create classes which reflect the data we | |
| # expect, but as an intermittant step, we convert the JSON to a Hash, which | |
| # we convert to an object. |
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 o = { | |
| a: 1, | |
| b: 2, | |
| c: 3, | |
| d: { | |
| a: 5, | |
| b: 6 | |
| } | |
| }; |
NewerOlder