modify outputjson method