I cannot use these values directly as in my program, I have a form with a couple of fields and the user inputs the values into the fields and that value is stored in the state. My objective is to print out the state in the format that is shown above.
So my approach was to covert it into a json object and then change it. But I’m doubtful if it will work like that or not