Array to json converter online

How to convert array to json in php

We can use json_encode to convert an array into json object in php. echojson_encode($array_data);

How to use the following converter ?

PHP array format should be like the following "item1","item2","item3" or "key1"=>"value", "key2"=>"value", "key3"=>"value"

PHP Array
Json Output
Is it a print_r output ?

This is a beta version of this tool, we cannot guarantee any accuracy