Recent

Author Topic: JSON Without known structure (sans structures connues)  (Read 865 times)

essam eddine adib

  • New Member
  • *
  • Posts: 20
JSON Without known structure (sans structures connues)
« on: September 14, 2019, 01:38:45 pm »
Hi
is There any way to read JSON file with unknown structure like module livred with lazarus (jsonviewer) but in simple code
 thanks for help

Bonjour,

y a t'il un moyen de lire un jSON sans connaitre sa structure, cad avoir module qui lit plusieurs JSON comme celui qui est livré avec lazarus mais en plus simple

merci pour votre aide
« Last Edit: September 14, 2019, 01:49:18 pm by essam eddine adib »

Thaddy

  • Hero Member
  • *****
  • Posts: 14210
  • Probably until I exterminate Putin.
Re: JSON Without known structure (sans structures connues)
« Reply #1 on: September 14, 2019, 02:07:40 pm »
Check out the examples in the fcl-json package. The simpledemo is a good place to start. The parsedemo in the same directory will parse any json you throw at it.
« Last Edit: September 14, 2019, 02:34:27 pm by Thaddy »
Specialize a type, not a var.

 

TinyPortal © 2005-2018