I'm using C# in a console app and I need a quick way to check if a string being returned from another service is XML or JSON.
I know if it was just XML, I could check it against a schema, or if it was just JSON I could try to parse it with JSON.Net, but is there a quicker way - maybe using build in .Net functions - just to tell which it is before then going on to process it?