JsonArrayMapper Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
A component that allows parsing a value from sourceField as a json array, match a key to each parsed value from keys, and output the key-value map to destinationField field.
[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Monitor.PipelineGroup.Models.JsonArrayMapperTypeConverter))]
public class JsonArrayMapper : Microsoft.Azure.PowerShell.Cmdlets.Monitor.PipelineGroup.Models.IJsonArrayMapper
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Monitor.PipelineGroup.Models.JsonArrayMapperTypeConverter))>]
type JsonArrayMapper = class
interface IJsonArrayMapper
interface IJsonSerializable
Public Class JsonArrayMapper
Implements IJsonArrayMapper
- Inheritance
-
JsonArrayMapper
- Attributes
- Implements
Constructors
JsonArrayMapper() |
Creates an new JsonArrayMapper instance. |
Properties
DestinationFieldDestination |
Define the destination's element. The element is the body or the attributes of the message, to which the json array mapper will write the output map. |
DestinationFieldName |
Define a destination field name under the given element. Leaving this empty, means the root of the element. In case element=attributes and fieldName is empty, the object's attributes themselves will contain the key value output pairs. |
Key |
Define the names of the keys in the resulting map. The input json array elements are mapped in order, one for every key. |
SourceFieldName |
Define a source field name from which the json array mapper will read the json array. Leaving this empty, means reading the body of the message itself. |
Methods
DeserializeFromDictionary(IDictionary) |
Deserializes a IDictionary into an instance of JsonArrayMapper. |
DeserializeFromPSObject(PSObject) |
Deserializes a PSObject into an instance of JsonArrayMapper. |
FromJson(JsonNode) |
Deserializes a JsonNode into an instance of Microsoft.Azure.PowerShell.Cmdlets.Monitor.PipelineGroup.Models.IJsonArrayMapper. |
FromJsonString(String) |
Creates a new instance of JsonArrayMapper, deserializing the content from a json string. |
ToJson(JsonObject, SerializationMode) |
Serializes this instance of JsonArrayMapper into a JsonNode. |
ToJsonString() |
Serializes this instance to a json string. |
ToString() |