I have a json string that I parse and then access the properties of the object with the dot notation. However, in the google closure compiler, the dot notation (MyObject.P
You basically have two choices:
MyJsonObject['PropertyName']
) this is the simple solution.MyJsonObject.PropertyName
). This requires more maintenance but allows the compiler to type check the properties if you provide type annotations in your extern description.