Traverse a JSON struct and return value.
interface IFromJSONConfig { propertyString?: string; }
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"
Generated using TypeDoc
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"