In .net core the most common way of serializing and deserializing objects (JSON) using Newtonsoft.Json.
You need to install the Nuget Package of Newtonsoft.Json
add using a statement like:
using Newtonsoft.Json;
and use it as:
object o = JsonConvert.DeserializeObject(json1);
string json2 = JsonConvert.SerializeObject(o, Formatting.Indented);