Skip to content
This repository has been archived by the owner on Jul 20, 2021. It is now read-only.

Latest commit

 

History

History
21 lines (14 loc) · 511 Bytes

fromJson-tutorial.md

File metadata and controls

21 lines (14 loc) · 511 Bytes

FromJSON

Traverse a JSON struct and return value.

Configuration

interface IFromJSONConfig {
  propertyString?: string;
}

Example

const fromJSONDefault = Mappers.fromJson(); // FromJSON: propertyString:""

const fromJSONGetProperty = Mappers.fromJson({ propertyString: "myProperty" }); // FromJSON: propertyString:"myProperty"

const fromJSONTraversePropertyAndArray = Mappers.fromJson({ propertyString: "propertyWithArray.0" }); // FromJSON: propertyString:"propertyWithArray.0"