making json output consistent