Forum: Programmieren allgemein
by himitsu,
6. Apr 2023
Das geht ebenfalls, wie du es ja schon benutzt hatttest, also GetItem('data'), nur Nummer ohne " um den "Namen".
Beachten solltest du aber, dass "data" ein Array ist, worin (mindestens) im ersten Wert ein Object liegt.
"data" : vs. Data direkt als Object "data" : {.
Das Objekt ist also SubItem/-Node von data, nicht nur von data,
Forum: Programmieren allgemein
by himitsu,
5. Apr 2023
:angle:
/// <summary> Parses a JSON path with names and indexes.</summary>
/// <remarks>
/// The syntax to write paths is similar to XPath but in a Json way.
/// The following XPath expression:
/// /entities/urls/indices
/// would look like
/// entities.urls.indices (dot notation)
/// or
Forum: Programmieren allgemein
by himitsu,
5. Apr 2023
Vielleicht mit " oder ' oder \ escapen
sProperties_3 := JSONValue.GetValue<string>('data.properties."debug.monitor".name');
sProperties_3 := JSONValue.GetValue<string>('data.properties.''debug.monitor''.name');
sProperties_3 := JSONValue.GetValue<string>('data.properties.debug\.monitor.name');
oder kann man eventuell auch \ bzw. / als Node-Separator benutzen?
sProperties_3 :=...