jsmn configuration added

This commit is contained in:
Alexey Lapshin 2019-11-28 16:15:50 +03:00
parent 93a8603c54
commit 1263a38038
2 changed files with 19 additions and 0 deletions

16
components/jsmn/Kconfig Normal file
View file

@ -0,0 +1,16 @@
menu "jsmn"
config JSMN_PARENT_LINKS
bool "Enable parent links"
default n
help
You can access to parent node of parsed json
config JSMN_STRICT
bool "Enable strict mode"
default n
help
In strict mode primitives are: numbers and booleans
endmenu

View file

@ -37,6 +37,9 @@
extern "C" {
#endif
#define JSMN_PARENT_LINKS CONFIG_JSMN_PARENT_LINKS
#define JSMN_STRICT CONFIG_JSMN_STRICT
/**
* JSON type identifier. Basic types are:
* o Object