Skip to content
toolmafia

PHP Array to JSON

Convert a PHP array literal into valid JSON the way json_encode does, with comments, trailing commas and both [] and array() syntax handled. Free, in browser.

Runs in your browser · files never uploaded 100% free