I want to receive my javascript object such as
{ "user": { "active": true, "dob": '1988-09-11', "group": 14, "department: "business"" } }
from input using a node package such as readline-sync
and store it as an object to be able to access to the values seperately using their keys. The readline-sync stores my input as an string I tried to convert it to javascript object using
let obj= JSON.parse(JSON.stringify(stringObj));
but still it is string. Is it possible to receive a string from the input and convert it object?