Skip to content

cakriwut/athena-json-deserializer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Athena JSON Deserializer

This library provides a JSON deserializer for the Athena. At the larger perspective, it decodes JSON having equal sign instead of colon into proper JSON.

What it does?

Consider the following JSON having equal sign:

{
  a = Singapore,
  b = Some address in Singapore (Postal Code 123456)
}

The library will convert it into proper JSON:

{
  "a": "Singapore",
  "b": "Some address in Singapore (Postal Code 123456)"
}

Getting Started

  1. Install Package
    Using Package Manager:
    PM> Install-Package AthenaJsonDeserializer
    Using .NET CLI:
    > dotnet add-package AthenaJsonDeserializer
    
  2. Use the AthenaJsonDeserializer class to deserialize JSON string:
    var json = @"{
      a = Singapore,
      b = Some address in Singapore (Postal Code 123456)
    }";
    var deserializedJson = AthenaJsonDeserializer.Deserialize(json);
    or use the AthenaJsonDeserializer extension method:
    var json = @"{
      a = Singapore,
      b = Some address in Singapore (Postal Code 123456)
    }";
    var deserializedJson = json.Deserialize();