diff --git a/space/jsontospaceparser.cpp b/space/jsontospaceparser.cpp index e019fd2..cb59e75 100644 --- a/space/jsontospaceparser.cpp +++ b/space/jsontospaceparser.cpp @@ -240,7 +240,7 @@ void JSONToSpaceParser::Parse() void JSONToSpaceParser::ParseSpace(bool has_space_name, bool insert_new_space) { - current_nested_level += 1; + //current_nested_level += 1; if( current_nested_level > max_nested_level ) { @@ -269,6 +269,8 @@ void JSONToSpaceParser::ParseSpace(bool has_space_name, bool insert_new_space) { ReadChar(); // skipping the last space character '}' } + + //current_nested_level -= 1; } @@ -372,7 +374,7 @@ void JSONToSpaceParser::ParseTable(bool has_key) { if( create_table_as_space ) { - current_nested_level += 1; + //current_nested_level += 1; if( current_nested_level > max_nested_level ) { @@ -382,6 +384,8 @@ void JSONToSpaceParser::ParseTable(bool has_key) { ParseObjectsTable(has_key); } + + //current_nested_level -= 1; } else {