AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Thema durchsuchen
Ansicht
Themen-Optionen

TJsonValue mit Punkt im ValueNamen

Ein Thema von gmc616 · begonnen am 2. Sep 2021 · letzter Beitrag vom 2. Sep 2021
 
Bbommel

Registriert seit: 27. Jun 2007
Ort: Köln
672 Beiträge
 
Delphi 12 Athens
 
#5

AW: TJsonValue mit Punkt im ValueNamen

  Alt 2. Sep 2021, 13:16
Und hier noch etwas von den Kollegen von Stackoverflow: https://stackoverflow.com/questions/...json-in-delphi

Läuft letztlich wohl darauf hinaus, dass, wenn du die Generics-Methoden oder FindValue nutzen willst, mit
Code:
'["@odata.etag"]'
statt
Code:
'@odata.etag'
arbeiten musst.

Edit:
Noch aus der Delphi-Doku dazu:
Zitat:
Supported JSON Path Syntax

TJSONPathParser implements a subset of the JSON path specification defined by Stefan Göessner. Specifically, supported elements are:

Child operators for objects:
Use . to access object properties that do not contain a dot in their name. For example, use root.child to access the child property of the root object.
Use [] to access object properties that do contain a quoting character in their name. For example, use root['child.name'] or root["child.name"] to access the child.name property of the root object.

Geändert von Bbommel ( 2. Sep 2021 um 13:18 Uhr)
  Mit Zitat antworten Zitat
 


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 05:35 Uhr.
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz