Skip to main content

JsonUtility

A static class in Alta.Api.DataTransferModels, Alta.Api.DataTransferModels.Utility.

Shared Json.NET settings for the Alta API: its converters, ISO UTC dates and nulls left out.

Fields​

MemberWhat it is
static JsonConverter[] AllConvertersThe converters used: IP address, region, JWT token and enums as strings.

Properties​

MemberWhat it is
static JsonSerializerSettings Settings { get; }Serializer settings with AllConverters, ISO UTC dates and null values ignored.

Methods​

MemberWhat it is
static void SetupJsonSerializerSettings()Makes Settings Json.NET's global default. The API clients call it on start, so it affects every JsonConvert call in the process.