Fix the outermost curly braces when outputing JSON.