Created
July 7, 2018 01:22
-
-
Save pachacamac/57a234ad165052d80e547b7fb482f572 to your computer and use it in GitHub Desktop.
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
JSON.parse({a: { b: { c: 1 }}}.to_json, object_class: OpenStruct) | |
https://stackoverflow.com/questions/26809848/convert-hash-to-object |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment