JSON is a text-based data format where data is represented as attribute-value pairs, enclosed in braces. In the rest of unexpected non-whitespace character after json content, you can find all the resources we have researched on this subject and examine them in detail.
This exception is thrown when the JSON text contains a character that is not a space, a tab, a newline, or a carriage return after the end of the JSON text.
Site:
https://docs.microsoft.com/en-us/dotnet/api/system.json.jsonexception?view=net-6.0