diff --git a/components/jsmn/Kconfig b/components/jsmn/Kconfig new file mode 100644 index 000000000..114fbe42b --- /dev/null +++ b/components/jsmn/Kconfig @@ -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 diff --git a/components/jsmn/include/jsmn.h b/components/jsmn/include/jsmn.h index 1df808e39..73ef95799 100644 --- a/components/jsmn/include/jsmn.h +++ b/components/jsmn/include/jsmn.h @@ -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