to_json method has to accept additional parameters. Otherwise the below mentioned exception is thrown when trying to generate a json in some cases.
wrong number of arguments (1 for 0)
/Users/jirifabian/.rvm/gems/ruby-2.0.0-p0/gems/weasel_diesel-1.2.1/lib/response.rb:354:in to_json' /Users/jirifabian/.rvm/gems/ruby-2.0.0-p0/gems/weasel_diesel-1.2.1/lib/response.rb:88:into_json'
JSON generation fixed - to_json method has to accept extra params
code snippet causing issues -> https://gist.github.com/filemon/5309833
JSON generation fix - topmost nodes can't be represented as arrays bu…
…t rather as a hashmap
I no longer get an exception here, but the first array is ignored. This will fixed by #18.