Trailing commas in JSON like this example:
Does not follow the JSON RSC put forth by the IETF. If you’re ever awake late at night and need some reading material to help you get to sleep, go check that thing out.
Microsoft, for whatever reason, decided that their new JSON Serializer is going to have default settings to strictly follow this document, meaning that trailing commas are not allowed.
Enter: the real world
Meanwhile, back in reality, when you’re trying to write an API that accepts data from a third party and can’t definitively guarantee that they too are sticklers for the rule book, you can set the JSON Serializer to allow for trailing commas on all incoming requests. It wasn’t exactly straightforward, so I thought I would write it down so I could find it again for the inevitable next time.