I'm trying to send a command from js to graph ql and I'm getting quotation issues. I'm trying to convert a json object to a string to pass into my graphql post.
This is the json object...
{
"name": "James",
"description": "Here is a note",
"managers":[
{
"id":"984035"
},
{
"id":"865130"
}
],
"clients":[
{
"id":"12365"
},
{
"id":"179354"
}
]
}
However I need it written like so in order to successfully work...
{
name: "James",
description: "Here is a note",
managers:[
{
id:"984035"
},
{
id:"865130"
}
],
clients:[
{
id:"12365"
},
{
id:"179354"
}
]
}
How can I convert the top json object to appear like the desired output?