I have persisted my objects to JSON and want to construct the object from JSON again later. For that I write the name of the object construction function into the JSON serialization like this: "com.acme.Picture"
Now when I read back the JSON I would like to construct the Picture object again. In plain javascript I would use
window["Picture"]
to get the function, but since I used WinJS namespaces, the window object does not hold a property named "com.acme.Picture".
Question is: How do I get a function from the namespace?