JSONText changed to throw the more correct JSONException.
Forgot some changes in last commit.