Skip to content
  • Tim Hinderliter's avatar
    Fix CHEF-1292/PL-538: make JSON.parse/to_json default recursion depth · 1507fba7
    Tim Hinderliter authored
    much higher than default of 19; wrap JSON with Chef::JSON (obj.to_json
    becomes Chef::JSON.to_json(obj); JSON.parse becomes Chef::JSON.from_json;
    JSON.pretty_generate becomes Chef::JSON.to_json_pretty); monkey-patch
    Merb::Request to handle this; override Merb::Controller.display to use 
    this; many other modifications to to_json/from_json calls to use 
    Chef::JSON
    1507fba7