temporarily commented 'current_nested_level' in JSONtoSpaceParser

git-svn-id: svn://ttmath.org/publicrep/pikotools/trunk@1082 e52654a7-88a9-db11-a3e9-0013d4bc506e
master
Tomasz Sowa 5 years ago
parent cb23304885
commit c910e22c00

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

Loading…
Cancel
Save