SOS
SOS

Reputation: 539

Unparsable FHIR Bundle with Binary Resource: Invalid URL

I'm trying to create a FHIR Bundle with Binary Resource, here is my bundle:

{
  "resourceType": "Bundle",
  "id": "bundle-transaction",
  "meta": {
    "lastUpdated": "2018-03-11T11:22:16Z"
  },
  "type": "transaction",
  "entry": [
    {
      "resource": {
        "resourceType": "Binary",
        "contentType": "application/pdf",
        "data": "a"
      },
      "request": {
        "method": "POST",
        "url": "Binary"
      }
    },
  ]
}

But I keep getting invalid JSON error, I think the error is at Bundle.entry.request.url field, but I'm not sure. Can anyone help me take a look? Thanks!

Upvotes: 0

Views: 54

Answers (1)

Lloyd McKenzie
Lloyd McKenzie

Reputation: 6803

You have a trailing comma on the third line from the bottom that shouldn’t be there

Upvotes: 1

Related Questions