Moves json output to a helper function
Updates single quotes to be double quotes