I want this string {"id": "23", "flag":"1", "qty": "2", "size": "23"},{"id":"12", "flag":"2", "qty":"1", "size":"12"}
to json array.
I have used following code but not working.
$data = '{"id": "23", "flag":"1", "qty": "2", "size": "23"},{"id":"12", "flag":"2", "qty":"1", "size":"12"';
echo json_decode($data, true);
If anyone know please help me how to do this.