role: "{"value":"Reseller","display":null,"type":null,"primary":null}";
Assuming that the string is JSON you can do the following to get the value you want
JSON.parse(`{"value":"Reseller","display":null,"type":null,"primary":null}`).value
2.1m questions
2.1m answers
60 comments
56.8k users