temporarily commented 'current_nested_level' in JSONtoSpaceParser

git-svn-id: svn://ttmath.org/publicrep/pikotools/trunk@1082 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
Tomasz Sowa 2018-04-16 22:51:14 +00:00
parent cb23304885
commit c910e22c00
1 changed files with 6 additions and 2 deletions

View File

@ -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
{