<?php

/*
    Response body is this:

    ['foo' => 'bar'];
*/

$json = $result->getJSON();

/*
    $json is this:

    {
        "foo": "bar"
    }
`*/

<?php

/*
    Response body is this:

    ['foo' => 'bar']
*/

$json = $result->getJSON();

/*
    $json is this:

    {
        "foo": "bar"
    }
`*/

Remove wrong semicolon in response body.
Remove wrong semicolon in response body.
