We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
def initialize(json) # read your JSON response here for example: for i in 0..(json.length-1) object = json.get(i) # Your code here end end
What about change the json interface, maybe parsing it to a Ruby hash, to be easier to use?
def initialize(json) json.map do |object| #today you can't map this json. object # { attr1: 'Value', attr2: 'Value' } end end
The text was updated successfully, but these errors were encountered:
Thanks for the suggestion. I would like to do something like this. Would you like to submit some code as a pull request?
Sorry, something went wrong.
If you want to parse jsonObject to a Ruby hash, check https://github.com/darinwilson/moran
No branches or pull requests
What about change the json interface, maybe parsing it to a Ruby hash, to be easier to use?
The text was updated successfully, but these errors were encountered: