My challenge involves a Json object structure that looks something like this:
{
"key" : "false",
"key2" : "1.00",
"key3" : "value"
}
I am seeking to convert this in Typescript to achieve the following transformation:
{
"key" : false,
"key2" : 1.00,
"key3" : "value"
}
Despite attempts using methods such as JSON.parse(JSON.stringify(json))
, JSON.parse(json)
and Object.assign(object, json)
, I have not been able to make any progress.