Fixed a bug where the jsonError wasn't returned.