C# Class Amazon.DynamoDBv2.DocumentModel.JsonUtils

Utility methods to handle conversion from/to JSON
Show file Open project: aws/aws-sdk-net Class Usage Examples

Public Methods

Method Description
DecodeBase64Attributes ( Document document ) : void

Decodes specific attributes from base64 to their binary representation.

FromJson ( string jsonText ) : Document

Parses JSON text to produce Document.

ToJson ( Document document, bool prettyPrint ) : string

Creates JSON text for a given Document

Private Methods

Method Description
FirstIndex ( StringBuilder sb, char toMatch ) : int
ToEntry ( JsonData data, DynamoDBEntryConversion conversion ) : Amazon.DynamoDBv2.DocumentModel.DynamoDBEntry
TryDecodeBase64 ( Amazon.DynamoDBv2.DocumentModel.DynamoDBEntry entry, Amazon.DynamoDBv2.DocumentModel.DynamoDBEntry &decodedEntry ) : bool
TryDecodeBase64 ( string base64Data, byte &bytes ) : bool
WriteJson ( Amazon.DynamoDBv2.DocumentModel.DynamoDBEntry entry, JsonWriter writer, DynamoDBEntryConversion conversion ) : void
WritePrimitive ( JsonWriter writer, DynamoDBEntryType type, object value ) : void

Method Details

DecodeBase64Attributes() public static method

Decodes specific attributes from base64 to their binary representation.
public static DecodeBase64Attributes ( Document document ) : void
document Document
return void

FromJson() public static method

Parses JSON text to produce Document.
public static FromJson ( string jsonText ) : Document
jsonText string
return Document

ToJson() public static method

Creates JSON text for a given Document
public static ToJson ( Document document, bool prettyPrint ) : string
document Document
prettyPrint bool
return string