Currently, json_escape() allocates a temporary buffer on the stack that's the size of the string being escaped. Stack space is precious and longer JSON strings can run into the hundreds of bytes, so re-implement this routine to escape in place. Signed-off-by: Marti Bolivar <marti.bolivar@linaro.org> |
||
|---|---|---|
| .. | ||
| json.c | ||
| json.h | ||
| Kconfig | ||
| Makefile | ||