JsonHelpers Class

Version 1.1.28
.NET Framework 4.8
This class has been marked as obsolete: Use the JsonUtils class instead.
Namespace Skybrud.Essentials.Json
Assembly Skybrud.Essentials.dll
Visibility Public
Keywords Static
Inheritance Object

Utility class with various static helper methods for working with JSON.

[Obsolete("Use the JsonUtils class instead.")]
public static class JsonHelpers { }

Methods

Loads and parses the JSON array in the file at the specified path.

Loads and parses the JSON object in the file at the specified path.

Loads and parses the JSON object in the file at the specified path.

Loads and parses the JSON object in the file at the specified path.

Parses the specified json string into an instance of JArray .

Parses the specified json string into an array of T.

Parses the specified json string into an instance JObject .

Parses the specified json string into an instance of T.

Saves the specified JsonObjectBase to the file at path. If the file doesn't already exist, a new file will be created.

Saves the specified JsonObjectBase to the file at path. If the file doesn't already exist, a new file will be created.

Saves the specified JsonObjectBase to the file at path. If the file doesn't already exist, a new file will be created.

Saves the specified JsonObjectBase to the file at path. If the file doesn't already exist, a new file will be created.