Closed vadim-goryunov closed 8 years ago
Actually a comma at the end of array or object entries is not valid JSON. That's why DDT has that error. DUB's JSON parser is more lenient and accepts that syntax, but it's still not valid JSON. Unfortunately the parser used in DDT doesn't support this, but I think I can find a way to workaround this. (it is indeed handy to have the comma at the end)
vibe.d dub.json file uses comma at the end of arrays (which is legal JSON): example:
but DDT json parser does not like it:
When I remove all trailing commas in arrays (or associative arrays), DDT accepts the dub.json and completes the parsing.