Skip to content

Instantly share code, notes, and snippets.

@kmdsbng
Created September 29, 2014 05:53
Show Gist options
  • Select an option

  • Save kmdsbng/c32298d75cfb9b96436d to your computer and use it in GitHub Desktop.

Select an option

Save kmdsbng/c32298d75cfb9b96436d to your computer and use it in GitHub Desktop.
# -*- encoding: utf-8 -*-
require 'yaml'
YAML::ENGINE.yamler= 'syck'
require 'active_support/all'
require 'json'
json = '{"a":"\\u0000"}'
p ActiveSupport::JSON.decode(json)
#=> {"a"=>"\u0000"}
p JSON.parse(json)
#=> {"a"=>"\u0000"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment