Wim Taymans
fc9a6d6b1e
spa: spa_json_get_string does not return the length
...
The returned string is null terminated.
2021-03-18 18:57:26 +01:00
Wim Taymans
8e590df92f
spa: improve info parsing
...
Make info parsing a bit easier to read by assigning the key and
value to temporary variables.
Improve the parsing of channelmap using json parser to make it
support more cases.
Add a unit test for channelmap parsing options.
2021-03-18 18:40:56 +01:00
Wim Taymans
f41de50b28
json: escape and unescape invalid unicode chars
2021-03-12 09:23:33 +01:00
eater
6a21909281
spa: escape double quotes
2021-02-18 14:01:28 +01:00
Wim Taymans
579e8a4ea6
json: allocate one extra byte for the \0
2021-01-19 16:56:55 +01:00
Wim Taymans
af8bb55762
spa: fix test on 32 bit
...
Fixes #441
2020-12-04 09:36:05 +01:00
Wim Taymans
62cdec8448
spa: move json parser to utils
...
Add unit test
Add escape function
2020-11-28 15:34:01 +01:00