Added JSON decoding to show how to make the response into an array, this is how it's done in get_petition_id.php so it seems logical that the documentation match up.