re-vendored json_pure -- needed for ruby 1.8