Whenever parse the encoded json data through jquery function $.parseJSON(data) ,It checks for json object format so parse json data error occur for the json array formated data pass in the function.

To solve this issue data encode with the json_encode($data,JSON_FORCE_OBJECT).

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading...