# File lib/facets/more/json.rb, line 498 def to_json(*) str = to_yaml str.sub!(/^---.*?$/, '---') YAML.load(str).to_json end