DatasetJsonFormat.JsonPathDefinition Propriété
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Définition JSONPath pour chaque mappage de colonne avec un nom de colonne personnalisé pour extraire des données à partir d’un fichier JSON. Pour les champs sous l’objet racine, commencez par « $ » ; pour les champs à l’intérieur du tableau choisi par la propriété jsonNodeReference, commencez à partir de l’élément tableau. Exemple : {"Column1 »: « $. Column1Path », « Column2 »: « Column2PathInArray"}. Type : objet (ou Expression avec l’objet resultType).
Pour affecter un objet à cette propriété, utilisez FromObjectAsJson<T>(T, JsonSerializerOptions).
Pour affecter une chaîne json déjà mise en forme à cette propriété, utilisez FromString(String).
Exemples :
- BinaryData.FromObjectAsJson(« foo »)Crée une charge utile de « foo ».
- BinaryData.FromString(« \"foo\" »)Crée une charge utile de « foo ».
- BinaryData.FromObjectAsJson(new { key = « value » })Crée une charge utile de { « key »: « value » }.
- BinaryData.FromString(« {\"key\ »: \"value\"} »)Crée une charge utile de { « key »: « value » }.
public BinaryData JsonPathDefinition { get; set; }
member this.JsonPathDefinition : BinaryData with get, set
Public Property JsonPathDefinition As BinaryData