Switched json output to built-in format function