- json_decode: documentation ( source)
- print_r: documentation ( source)
<?php
$post = '{
"test1_key":"test1_val",
"test2_key":"test2_val",
"test3_key":"test3_val"
}
{
test4_key: test4_val
}
{
"json_obj_3":[
{"test1":"test2","test3":"test4"}
]
}';
print_r(json_decode($post, true));