I have below as string
name : abc,
position : 2
I want to make replace so that the string becomes as below
name : "abc",
position : 2
What change I want to do is abc will have double quotes so abc becomes "abc".
Note: abc is dynamic, it can be anything as below.
name : Test,
position : 2
name : Great,
position : 2
name : developers,
position : 2
Any idea how this can be done?
Anything can be anything?great, test, developershere they must be an object?