Fix bug and add regression test
put jsonOptions back in
Merge pull request #3849 from alprs/fix/json-decode-5.3

Fix json_decode in JsonResponse for PHP 5.3