* * *

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

JD

  • Hero Member
  • *****
  • Posts: 1607
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.8RC5/FPC 3.0.4 (also Delphi occasionally), NewPascal
Linux Mint Cinnamon  - Lazarus 1.8RC5/FPC 3.0.4
Indy 10.6 series; mORMot; Zeos 7.2.1; SQLite, Firebird, PostgreSQL & MariaDB

wp

  • Hero Member
  • *****
  • Posts: 3896
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.4 / all 32-bit on Win-10

JD

  • Hero Member
  • *****
  • Posts: 1607
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.8RC5/FPC 3.0.4 (also Delphi occasionally), NewPascal
Linux Mint Cinnamon  - Lazarus 1.8RC5/FPC 3.0.4
Indy 10.6 series; mORMot; Zeos 7.2.1; SQLite, Firebird, PostgreSQL & MariaDB

wp

  • Hero Member
  • *****
  • Posts: 3896
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.4 / all 32-bit on Win-10

JD

  • Hero Member
  • *****
  • Posts: 1607
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.8RC5/FPC 3.0.4 (also Delphi occasionally), NewPascal
Linux Mint Cinnamon  - Lazarus 1.8RC5/FPC 3.0.4
Indy 10.6 series; mORMot; Zeos 7.2.1; SQLite, Firebird, PostgreSQL & MariaDB

wp

  • Hero Member
  • *****
  • Posts: 3896
Re: TVPlanit with a JSON datastore
« Reply #5 on: June 27, 2017, 10:03:08 am »
Sorry I missed this post... Issue should be fixed in r5964.
Lazarus trunk / fpc 3.0.4 / all 32-bit on Win-10

 

Recent

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