XData Error in Post


I am passing the following in a post:

  "AllDay": false,
  "EndTime": "2023-06-09T11:30:00Z",
  "SharedResources": [
   "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!



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.