Fixing the json output