Closed rosenfeld closed 11 years ago
Hmm, interesting. I wasn't aware of this limit.
The 'json' Ruby gem has the same issue:
https://github.com/pivotalpodbay/jasmine-gem/commit/a3eccc3416dd2ab7063fb3b8bd1369b449439fe7
I don't know about ExecJS yet though.
ExecJS don't allow the options to be passed to MultiJson and then to JSON:
https://github.com/sstephenson/execjs/blob/master/lib/execjs/json.rb
It should somehow call MultiJson.load(obj, :max_nesting => false)
or MultiJson.load(obj, ExecJS.json_options)
I've just sent them a pull request:
Just ran into this once again. Just adding yajl-ruby
or some other JSON parser to the app solved the problem. Until/unless execjs and multijson fix this, there isn't anything we can do.
I'm getting this exception in one of my views:
This deep level in my view is not that deep that it becomes hard to read the template. Actually having to split it just because of this limit will make it harder to understand. :(