How to add new level in Json global context file

So this was the missing information - you are using a non-default store for context - "file". The code I provided didn't know you were doing that so didn't specify the right context store.

Did you try changing the code I provided to use the same store?

var currentValue = global.get("A","file");
currentValue["3"] = {
    "info_1":"false",
    "info_2":"false",
    "info_3":"true"
}
global.set("A",currentValue,"file");

In fact, I can see you code doesn't use "file" consistently:

Here you get the value from default context identified by the value of chambre. You check if it is undefined and then set something in file context.
You then get the chambre object back from normal context and use it, ignoring the fact it may be undefined.