RussellW 3 Posted April 1, 2019 I don't normally use the in build Delphi JSON, so how would you best test to see if TJSONVALUE is a TJSONARRAY or TJSONOBJECT? Share this post Link to post
Guest Posted April 2, 2019 (edited) procedure foo(const value: TJSONValue ) begin if value is TJSONArray then begin // Yes, it is an array end else if value is TJSONObject then begin // Yes, it is an object end else begin // not array, not object end; end; Edited April 2, 2019 by Guest Share this post Link to post
RussellW 3 Posted April 2, 2019 thanks. Sometimes you are so far into the woods.... Share this post Link to post