jsonfx/jsonfx — pull request #29 by jscheid (2013-07-16 14:38:19+00:00)
Title: Don't throw DeserializationException for U+007F to U+009F

Hi,

JsonFX currently throws a `DeserializationException` if the input stream contains characters in the range U+007F to U+009F. http://json.org/ says control characters are not permitted and these are indeed control characters as per the Unicode standard. However, RFC 4627 has a narrower definition:

> All Unicode characters may be placed within the quotation marks except for the characters that must be escaped: quotation mark, reverse solidus, and the control characters (U+0000 through U+001F).

(See http://tools.ietf.org/html/rfc4627#section-2.5)

This is the definition that e.g. Google Chrome follows. For instance:

```javascript
encodeURIComponent(JSON.stringify(String.fromCharCode(0x10)))
"%22%5Cu0010%22"
encodeURIComponent(JSON.stringify(String.fromCharCode(0x82)))
"%22%C2%82%22"
```

Patch attached.