Would it be possible to parse a string as follows… {"Key": "Value"}
back into a object? When I ever I try to parse it, I receive errors. I've been trying to use json.parse
, but that does not work either.
This is what i have mapped out, but for this format it fails.
// Creating a list of objects, while mapping properties of an object
let obj = "{
"key": "3"
}";
let objList = Object.entries(obj).map(([key, value]) => Object.fromEntries(new Map([
[key, value]
])));