Displaying 3 results from an estimated 3 matches for "multijson".
Did you mean:
multi_json
2012 Jan 27
2
to_json performance
...the info we need about our objects.
This operation proved to be _extremely_ fast even if we are
transforming and inserting 50k records.
Now, on to the rendering:
render json: my_hash
This should try to call `to_json`on the Hash.
Since few Rails versions JSON encoding has been delegated to
`MultiJson`, which is ok.
Needless to say I''m using and requiring `yajl-ruby`, so I''m pretty
confident that MultiJson will pick it up as my engine, and in fact it
is:
1.9.3p0 :001 > MultiJson.engine
=> MultiJson::Engines::Yajl
The key issue here is that with a large Hash the...
2011 Jun 11
0
[3.1.0.rc4] MultiJson::DecodeError with alternative I18n Backends
Hello, I open a issue :
https://github.com/rails/rails/issues/1499
I solve this issue with a monkey path.
But I thinks it''s a regression against the 3.0. I try same code with
3.0.7 and it''s work perfectly.
Can it be solve without this dirty monkey ?
Thanks.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group.
To
2012 Aug 29
1
Wierd encoding problem
I put the complete error description into a gist (https://gist.github.com/5d2cef1414f1643fca5a) for better readability.
The basic problem is that a properly encoded Json post request gets decoded an a very weird way. For example a "ΓΌ" which is encoded as "\u00fc" in uft-8 becomes ">\x93" or "~\xD4". I get different results ever time I run the decoder.