Closed kevinastock closed 14 years ago
Seconded. Also, it is escaping the nul character.
thirded, as described here: http://www.reddit.com/r/programming/comments/dy2rh/hey_reddit_we_just_made_openkeyvalorg_an_open/c13t9h8
FlyingV currently has a facility for hacking around that when getting data serialized to JSON (i.e. prior to deserializing, otherwise json parsing fails), but I'd love to remove this hack: http://github.com/tomash/flyingv/blob/master/lib/flyingv.rb#L7
From what I can tell looking at the source the data is not serialized to JSON. There are only two calls to json_encode, which are only called if there's a callback or no body (data) text.
Edit: My bad, I misunderstood what flyingv was doing.
nonono, misunderstanding. json (de)serializing is done of course only in my ruby library (flyingv).
Fixed with 2a08e67ec15aba015753873978c1e57354c16904
Great, thanks! I've removed the dirty hack from FlyingV then: http://github.com/tomash/flyingv/commit/c8963024375cb00e9459c588586da4383805626b and bumbed gem version.
Some characters are being escaped which are consistent with php magic quotes being on.