update fprint_pretty_json function