Recent

Author Topic: [SOLVED] JSON Treeview  (Read 1474 times)

pcurtis

  • Hero Member
  • *****
  • Posts: 951
[SOLVED] JSON Treeview
« on: July 27, 2020, 12:26:17 pm »
Please help.

Has anyone got a simple sample of how to populate a treeview with JSON.

Thanks in advance.
« Last Edit: July 27, 2020, 04:14:15 pm by pcurtis »
Windows 10 20H2
Laz 2.2.0
FPC 3.2.2

paweld

  • Hero Member
  • *****
  • Posts: 1591
Re: JSON Treeview
« Reply #1 on: July 27, 2020, 01:50:56 pm »
Best regards / Pozdrawiam
paweld

balazsszekely

  • Guest
Re: JSON Treeview
« Reply #2 on: July 27, 2020, 01:51:22 pm »
@pcurtis
Quote
Has anyone got a simple sample of how to populate a treeview with JSON.
1. Lazarus Menu->Tools->Example Projects
2. Check "Include all subdirectories"
3. Type to the project filter "json"
4. Open then run jsonviewer.lpi
5. File->Open then select a json file

pcurtis

  • Hero Member
  • *****
  • Posts: 951
Re: JSON Treeview
« Reply #3 on: July 27, 2020, 02:44:19 pm »
@paweld: Thanks.

I was looking to simplify jsonviewer and that's what I wanted.

I've attached a sample app. (By far not the best, but it works)
« Last Edit: July 27, 2020, 04:07:47 pm by pcurtis »
Windows 10 20H2
Laz 2.2.0
FPC 3.2.2

 

TinyPortal © 2005-2018