Json provides an oop wrapper around the json_encode and json_decode PHP functions and provides error handling in the form of exceptions.