Deserialize either JSON or JSV?

Quick question, we have some raw text coming in as either JSV, or JSON that we want to deserialize.

What’s the best way to determine if the string to deserialize is JSON or JSV so that we can run it through either the TypeSerializer.DeserializeFromString< T> or the JsonSerializer.DeserializeFromString< T>?

In general, what’s the best way to handle this?

Have them call different endpoints or send the Content-Type along with the payload, you don’t want to rely on heuristic sniffing.