dialogflow / fulfillment-webhook-json

Dialogflow's Fulfillment: Webhook JSON (Requests & Responses)
Apache License 2.0
191 stars 70 forks source link

Trailing comma in request.json #4

Closed zugaldia closed 6 years ago

zugaldia commented 6 years ago

I'm trying to use the files in this repo as test fixtures and I'm hitting an issue parsing requests/v2/request.json. The following trailing comma is tripping my Json decoder (Jackson) as it goes against the JSON spec:

"parameters": {
  "param": "param value",
}

The error is:

com.fasterxml.jackson.core.JsonParseException: Unexpected character ('}' (code 125)): was expecting double-quote to start field name

Removing the comma fixes the issue.

Otherwise, thanks team for providing these files. It's great to have them as a resource while building a webhook.

aradwyr commented 6 years ago

Fixed