#1 mORMot 2 » Variable types of every JSON pair (name and value)? » 2025-05-07 00:16:40

eternalnewbie
Replies: 1

I have downloaded JsonViewerSource.zip and, naturally, read the (translated) post here.

https://www.delphipraxis.net/212923-mor … ieren.html

I am trying to use it for my purposes [write something similar to MQTT Explorer].

But I need some help.

How do I get the variable type of elements other than dvObject or dvArray?

The following (as well as various permutationsa I tried) does not seem to work:

PDocVariantData(GetNodeData(ANode)).DocVData.Names[ANode.Index].Kind

In other words, I want to get the 'kind' of either element of any pair?

How can I do that?

Could you help, please.

Board footer

Powered by FluxBB