Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | json: fix UTF-8 handling | wm4 | 2015-04-29 | 1 | -2/+2 |
| | | | | | | | | | | | | | | We escape only characters below 32, plus " and \. UTF-8 should be apssed through verbatim. Since char can be signed (and usually is), the check broke and happened to escape UTF-8 encoded bytes too. This broke UTF-8 completely. Note that we don't check for broken or invalid UTF-8, such as described both in the client API and IPC docs. Fixes #1874. (cherry picked from commit f77e3cbf0ca7a91fc773f631828e95584e3ad146) | ||||
* | json: handle >\\"< fragments correctly | wm4 | 2014-10-21 | 1 | -2/+3 |
| | | | | | | It assumed that any >\"< sequence was an escape for >"<, but that is not the case with JSON such as >{"ducks":"\\"}<. In this case, the second >\< is obviously not starting an escape. | ||||
* | lua: expose JSON parser | wm4 | 2014-10-19 | 1 | -0/+5 |
| | | | | | | | The JSON parser was introduced for the IPC protocol, but I guess it's useful here too. The motivation for this commit is the same as with 8e4fa5fc (again). | ||||
* | misc: add JSON parser | wm4 | 2014-10-17 | 1 | -0/+282 |