<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />

JRaw

public class JRaw : JValue
Represents a raw JSON string.
using System.Globalization; using System.IO; using System.Runtime.CompilerServices; using System.Threading; using System.Threading.Tasks; namespace Newtonsoft.Json.Linq { [System.Runtime.CompilerServices.NullableContext(1)] [System.Runtime.CompilerServices.Nullable(0)] public class JRaw : JValue { [AsyncStateMachine(typeof(<CreateAsync>d__0))] public static Task<JRaw> CreateAsync(JsonReader reader, CancellationToken cancellationToken = default(CancellationToken)) { <CreateAsync>d__0 stateMachine = default(<CreateAsync>d__0); stateMachine.<>t__builder = AsyncTaskMethodBuilder<JRaw>.Create(); stateMachine.reader = reader; stateMachine.cancellationToken = cancellationToken; stateMachine.<>1__state = -1; stateMachine.<>t__builder.Start(ref stateMachine); return stateMachine.<>t__builder.Task; } public JRaw(JRaw other) : base(other, null) { } internal JRaw(JRaw other, [System.Runtime.CompilerServices.Nullable(2)] JsonCloneSettings settings) : base(other, settings) { } [System.Runtime.CompilerServices.NullableContext(2)] public JRaw(object rawJson) : base(rawJson, JTokenType.Raw) { } public static JRaw Create(JsonReader reader) { using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter)) { jsonTextWriter.WriteToken(reader); return new JRaw(stringWriter.ToString()); } } internal override JToken CloneToken([System.Runtime.CompilerServices.Nullable(2)] JsonCloneSettings settings) { return new JRaw(this, settings); } } }