0

http request body json syntax qyestion

I need to send the following json body request in a http call

{
"variant": {
"id": 7702027632705,
"price": "2.70"
}
}

I keep getting the following error

 

the ninox code i have written is

{
variant: [{
id: 7702027632705
}, {
price: 2.7
}]
}

could anyone clarify the correct way to write this

 

Regards

 

Paul

1 reply

null

Content aside

  • 4 yrs agoLast active
  • 1Replies
  • 1227Views