Fully function JSON to PHP exporter.