How to explain the difference of meaning between JToken and JsonToken in Newtonsoft.Json(Json.Net)

Viewed 11873

As mentioned,Please tell me the essence of JToken and JsonToken in Json.Net.

I can not distinguish the meaning about them clearly.

I am anxious for your answer! many thanks!

1 Answers

JToken is the abstract base class of JObject, JArray, JProperty, and JValue, which represent pieces of JSON data after they have been parsed.

JsonToken is an enum that is used by JsonReader and JsonWriter to indicate which type of token is being read or written.

You can find more information in the Json.Net API reference.

Related