Fixing json output.