stig/json-framework — Issue #125: Malformed JSON data form server (minor, such as illegal escapes) cause failure
Author: davidharcombe
Created: 2012-02-22 22:46:29+00:00
State: open

Is there a way of adding a switch to allow the parsing of illegal escapes by simply ignoring them or replacing them with a space? I have a data feed from a third party which cotnains '\x26', for example, in a string and no parser will allow this through on iOS - although on any other platform, it's fine.

I've (temporarily) altered SBJsonTokenizer (at line 100) to return a ' ' character myself, but I could see a use for a 'strict' mode which would reject illegal escapes and a 'lenient' mode which would ignore them.