Uses builtin json_encode and json_decode functions to simplify escaping Removes the need for temp files