Skip to content

Error when the path contains the dot char #95

@antoniofarina

Description

@antoniofarina

When the path contains the dot, the append to array function has an unexpected behaviour

For example, givin the structure

{  
   "site":{  
      "content":{  
         "it":{  
            "about-us.md":[]
         }
      }
   }
}

the instruction

db.push ("/site/content/it/about-us.md[]", {"code":0, "value": 1}) 

result in

{  
   "site":{  
      "content":{  
         "it":{  
            "about-us.md":[],
             "about-us.md[]" : {"code":0, "value": 1}
         }
      }
   }
}

instead of

{  
   "site":{  
      "content":{  
         "it":{  
            "about-us.md":[ {"code":0, "value": 1}]
         }
      }
   }
}

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions