update json prettify ONLY for json format.