Like How to get JSON objects value if its name contains dots?, how do I use JSON.parse() function to make it an object?
For a JSON:
const mydata = {
"key1" : "value1",
"key2.part2": "value2"
};
How should I define the class?
class MyData {
key1: string;
key2.part2: string;
}
key2.part2
would be invalid in a class.