Open rtyler opened 11 years ago
I want to actually drop the JSON gem compat API in yajl-ruby 2.0 (which I haven't had time to work on, heh). It's been a huge source of pain and frustration.
Unless I specifically check for an empty string being passed in and raise the error there, yajl will happily parse this because for all it knows it's just the beginning of a stream of content. I actually prefer how liberal yajl is in this regard.
Being as though I want to remove this functionality, I'm tempted to close this, but... What do you think? :)
Well, the whole utility of the json_gem compatibility for us is that we can have Yajl speed up JSON on MRI, and rely on the JRuby JSON gem for speed on JRuby.
If you're going to remove it for 2.0 that's your call, but I think the 1.x branch where it exists should match API compat.