Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "item1": {
- "key1": "val1"
- "key2": "val2"
- "key3": [
- "key4": "val4"
- "key5": "val5"
- ]
- },
- {
- "item2": {
- "key1": "val1"
- "key2": "val2"
- "key3": [
- "key3": "val3"
- "key4": "val4"
- ]
- }
- ... etc ...
- }
- interface MyObj {
- key1: string;
- key2: string;
- key3: string[];
- }
- const myObj[]: {string: Myobj[]} = JSON.parse(response);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement