XData Error in Post

Hi,

I am passing the following in a post:

{
  "AllDay": false,
  "EndTime": "2023-06-09T11:30:00Z",
  "SharedResources": [
    "EE1C6023-F142-4CFC-8157-BEFA3D75BAA7"
   ],
   "StartTime": "2023-06-09T11:00:00Z",
   "Subject": "Test"
}

But am getting the error error ConvertFromJsonError", message: "Invalid string JSON value at $.SharedResources" }

SharedResources is defined as a string in the entity and also in the database (NexusDB).

How can I resolve this? I have tried using a TBlob but I get a similar error!

Thanks,

Ken

Ok, I worked it out. I had to use JSON.stringify/JSON.parse.

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.