Once you have downloaded OKJson you may require it like so:
require_once(__DIR__ . "lib/okjson.php"); // or wherever it is on your filesystem\
After you have required OKJson you initialize it like this:
$okjson = new OKJson(__DIR__);
Now you can put JSON anywhere in your application with ease:
Be sure to check out the example.