#1 2016-02-16 14:03:36

ioda19
Member
Registered: 2015-11-18
Posts: 14

JSON without field name

Hi,

How I can implement class in delphi to serialize/deserialize this JSON file ?

[
	"6b43e778-a0af-429e-8e09-0c664f5016b9",
	"40abc107-d078-41a0-8aa7-0c664f336125",
	"ecf50a16-83d2-4bf6-a099-0c664f1aa447"
]

Offline

#2 2016-02-16 16:13:52

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,272
Website

Re: JSON without field name

Why not just use a TGUIDDynArray ?

Offline

#3 2016-02-16 18:08:47

ioda19
Member
Registered: 2015-11-18
Posts: 14

Re: JSON without field name

It works
Thank you

This is my code for anyone need it

var
  array : TVariantDynArray;
begin
  array  := JSONToVariantDynArray(JSONRESULT)

Offline

Board footer

Powered by FluxBB