* * *

Author Topic: TVPlanit with a JSON datastore  (Read 480 times)

JD

  • Hero Member
  • *****
  • Posts: 1561
TVPlanit with a JSON datastore
« on: May 14, 2017, 04:10:33 pm »
@wp

I just noticed that TVPlanit now has an XML datastore. Is it possible for you to add a pure JSON datastore? Or alternatively, do you know of a pascal function that converts XML to JSON?

Thanks a lot for your work.

JD
« Last Edit: May 14, 2017, 04:34:51 pm by JD »
Windows (10, 7) - Lazarus 1.6.4/FPC 3.0.2 (also Delphi occasionally)
Linux Mint Cinnamon  - Lazarus 1.4/FPC 2.6.4
Indy 10.6 series; Zeos 7.2.1; SQLite, Firebird, PostgreSQL & MariaDB

wp

  • Hero Member
  • *****
  • Posts: 3512
Re: TVPlanit with a JSON datastore
« Reply #1 on: May 14, 2017, 05:27:20 pm »
Yes, I have been thinking of this already. But because this will be my first activity with JSON, and because I am involved in other things at the moment, this may take some time. Of course, you can try it yourself to speed it up...
Lazarus trunk / fpc 3.0.0 / Win32

JD

  • Hero Member
  • *****
  • Posts: 1561
Re: TVPlanit with a JSON datastore
« Reply #2 on: May 14, 2017, 06:15:58 pm »
Yes, I have been thinking of this already. But because this will be my first activity with JSON, and because I am involved in other things at the moment, this may take some time. Of course, you can try it yourself to speed it up...

I understand. I actually wanted to do it late last year but other activities made me shelve it. Unfortunately, my schedule hasn't changed at all. I'll just have to wait.

Thanks,

JD
Windows (10, 7) - Lazarus 1.6.4/FPC 3.0.2 (also Delphi occasionally)
Linux Mint Cinnamon  - Lazarus 1.4/FPC 2.6.4
Indy 10.6 series; Zeos 7.2.1; SQLite, Firebird, PostgreSQL & MariaDB

wp

  • Hero Member
  • *****
  • Posts: 3512
Re: TVPlanit with a JSON datastore
« Reply #3 on: June 12, 2017, 11:59:52 am »
Now there's a TVpJSONDatastore, a demo is in the folder "examples/datastores/json". It should work basically, but maybe requires some more testing.
Lazarus trunk / fpc 3.0.0 / Win32

JD

  • Hero Member
  • *****
  • Posts: 1561
Re: TVPlanit with a JSON datastore
« Reply #4 on: June 12, 2017, 07:52:03 pm »
Danke wp. I just tried it and the example project said it was unable to open data.json

JD
Windows (10, 7) - Lazarus 1.6.4/FPC 3.0.2 (also Delphi occasionally)
Linux Mint Cinnamon  - Lazarus 1.4/FPC 2.6.4
Indy 10.6 series; Zeos 7.2.1; SQLite, Firebird, PostgreSQL & MariaDB

 

Recent

Get Lazarus at SourceForge.net. Fast, secure and Free Open Source software downloads Open Hub project report for Lazarus