Replace format method PrettyPrintJson