@@ -77,12 +77,20 @@ parseErrorToReport path source parseError reason =
79 ObjectField row col ->
79 ObjectField row col ->
80− toSnippet "UNFINISHED OBJECT" row col
80+ toSnippet "EXTRA COMMA" row col
82 "I was partway through parsing a JSON object when I got stuck here:"
82 "I was partway through parsing a JSON object when I got stuck here:"
86+ ["I","saw","a","comma","right","before","I","got","stuck","here,"
85− [ D.reflow $ "I was expecting to see a field name next."
87+ ,"so","I","was","expecting","to","see","a","field","name","like"
88+ ,D.dullyellow "\"type\"","or",D.dullyellow "\"dependencies\"","next."
91+ "This error is commonly caused by trailing commas in JSON objects. Those are\
92+ \ actually disallowed by <https://json.org> so check the previous line for a\
93+ \ trailing commas that may need to be deleted."
86 , objectNote
94 , objectNote