Fix JSON decoding.

Merely this was blocking the whole parseUri function and javascript execution.