C Sharp (C#) - File IO
Which of the following code snippets correctly deserializes a JSON string into a C# object of type
Person using System.Text.Json?Person using System.Text.Json?JsonSerializer.Deserialize<T>(string) is the method from System.Text.Json to convert JSON string to an object.JsonConvert.DeserializeObject<T> belongs to Newtonsoft.Json, not System.Text.Json. Serialize is for converting objects to JSON, not the reverse. Parse is not a valid method in JsonSerializer.Deserialize<T> from System.Text.Json [OK]15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions