def fix_json_formatting json
      if json =~ /\{".*?":"/
        JSON.pretty_generate(JSON.parse(json, create_additions: false))
      else
        json
      end
    end
def fix_json_formatting json
      if json =~ /\{".*?":"/
        JSON.pretty_generate(JSON.parse(json, create_additions: false))
      else
        json
      end
    end
Having Active Support JSON loaded somehow kills the formatting of pretty_generate for objects.
 Don't ask me why, but it still seems to work for hashes, so the hacky work around is to
 reparse the generated JSON into a hash and pretty_generate that... sigh...
 Oh ActiveSupport, why....