Parse this string of a JSONObject that contains a JSONArray of JSONObjects

By Javier Salas

I want to parse this string of a JSONObject that contains a JSONArray of JSONObjects

Array
(
[Assignments] => Array
    (
        [0] => Array
            (
                [ass_name] => Test123
                [class_id] => 2
                [date_assigned] => 2017-08-23
                [done] => false
                [due] => 2017-08-23 13:34:54
                [id] => 10
                [weight] => 65
            )
    )
)

I tried using

$json = json_decode($testing,true);
echo $json;

where $testing is my entire string but $json echos nothing.

Source: Stack Overflow

    

Share it with your friends!

    Fatal error: Uncaught Exception: 12: REST API is deprecated for versions v2.1 and higher (12) thrown in /home/content/19/9652219/html/wp-content/plugins/seo-facebook-comments/facebook/base_facebook.php on line 1273