jsonGet expression bug with interger key?

jsonGet("{‘A’:‘FERME’,‘1’:‘OUVERT’}",‘A’) return FERME
jsonGet("{‘A’:‘FERME’,‘1’:‘OUVERT’}",‘1’) don’t return anything ???
jsonGet("{0:‘FERME’,1:‘OUVERT’}",1) don’t return anything ???

is there any anything special with integer ou interger string ???

Can you try just for fun wrapping the 0 in single quotes?

This is a little bit of a weird case, but this works:

jsonGet("{'A':'FERME','1':'OUVERT'}", "['1']")

The path has to be a valid JS literal as well… so it can’t start with a number, so we added this implicit context where you can access it dictionary style.

1 Like