From c910e22c003e64f40bbe13c99ed289a5975506e1 Mon Sep 17 00:00:00 2001 From: Tomasz Sowa Date: Mon, 16 Apr 2018 22:51:14 +0000 Subject: [PATCH] temporarily commented 'current_nested_level' in JSONtoSpaceParser git-svn-id: svn://ttmath.org/publicrep/pikotools/trunk@1082 e52654a7-88a9-db11-a3e9-0013d4bc506e --- space/jsontospaceparser.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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 {