New issue
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
Use MultiJson and MultiXml for parsing instead of Crack #89
Conversation
+1 |
1 similar comment
+1 |
+1 for sure |
+1 |
This is sorely needed. Crack chokes on some valid responses that the stdlib JSON handles correctly. One such example is here: #75 |
+1 Before applying this patch, I got all kinds of encoding errors while using the Google Translate API. With this patch applied, no issues any more. Either this one or: |
+1 |
+1 from me, too. I'm seeing similar issues with HTTParty 0.1.8 and Ruby 1.9.2-p290 giving the |
+1 |
4 similar comments
+1 |
+1 |
+1 |
+1 |
Fantastic! Everything is working better than expected now! |
I've switched the parser to use MultiJson and MultiXml, which automatically chooses the best option from what is installed, or optionally what is explicitly specified, allowing the use of Yajl or nokogiri or what have you instead of requiring parsing be done with Crack.