I could not convert the JSON string to array using PHP. Here is my code:
$edu=$_POST['edu'];
echo ($edu);
The above line is giving the below output.
'[{"uname":"univ1","year":"2017","description":"hello"},{"uname":"univ2","year":"2016","description":"hello des"}]' 
I need to convert this to array using below code.
$eduArr=json_decode($edu,true);
print_r($eduArr);
But here I am getting the output as (empty). I need to convert the above string to array. 



$edu = trim($_POST['edu'], "'");maybeecho json_last_error_msg();after yourjson_decode()and see if you get some error message that will help