json_string metafield with double quote inside

Highlighted
New Member
8 0 0

How do I write a mutation with metafield as json_string and value contain a double quote?

mutation {
  SKUAKNB136COUNT4:productCreate(
    input :{title:"LCD Display (AKB136)" 
      metafields:[{value:"""{"Spec": "30\" LCD"}""" 
        key:"specs" valueType:JSON_STRING namespace:"pdct_custom_fields" }]
        handle:"AKNB136-product_handle" 
        }) 
        { userErrors 
          { field message } 
          product { id } }}
        
0 Likes