parser json BUGFIX printing opaque nodes as containers (#2230)
In case there are empty containers in JSON output,
they were not stored as such and term nodes were
incorrectly printed.
diff --git a/src/tree_data.h b/src/tree_data.h
index ff25b8b..f920c20 100644
--- a/src/tree_data.h
+++ b/src/tree_data.h
@@ -955,6 +955,7 @@
*/
#define LYD_NODEHINT_LIST 0x0080 /**< node is allowed to be a list instance */
#define LYD_NODEHINT_LEAFLIST 0x0100 /**< node is allowed to be a leaf-list instance */
+#define LYD_NODEHINT_CONTAINER 0x0200 /**< node is allowed to be a container instance */
/**
* @} lydnodehints
*/
@@ -969,11 +970,11 @@
* Any information about value and node types encoded in the format is hinted by these values.
* It combines [value hints](@ref lydvalhints) and [node hints](@ref lydnodehints).
*/
-#define LYD_HINT_DATA 0x01F3 /**< special node/value hint to be used for generic data node/value (for cases when
+#define LYD_HINT_DATA 0x03F3 /**< special node/value hint to be used for generic data node/value (for cases when
there is no encoding or it does not provide any additional information about
a node/value type); do not combine with specific [value hints](@ref lydvalhints)
or [node hints](@ref lydnodehints). */
-#define LYD_HINT_SCHEMA 0x01FF /**< special node/value hint to be used for generic schema node/value(for cases when
+#define LYD_HINT_SCHEMA 0x03FF /**< special node/value hint to be used for generic schema node/value(for cases when
there is no encoding or it does not provide any additional information about
a node/value type); do not combine with specific [value hints](@ref lydvalhints)
or [node hints](@ref lydnodehints). */