Fixing an issue in the setJSONPropertyInAST helper.