I am trying to convert JSON to an object via JSON.parse(`{${jsonStr.replace()}}`)
, is my case value of the {${jsonStr.replace()}}
is
{ "MIA": 246, "liberty": 215, "TerminalOrderId": 002539224748 }
Is there any possible way to convert this string from
{ "MIA": 246, "liberty": 215, "TerminalOrderId": 002539224748 }
To
{ "MIA": "246", "liberty": "215", "TerminalOrderId": "002539224748" }
This would allow me to convert JSON to an object without any errors