Recent

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

JD

  • Hero Member
  • *****
  • Posts: 1848
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 - Lazarus 2.1/FPC 3.2 (built using fpcupdeluxe),
Linux Mint - Lazarus 2.1/FPC 3.2 (built using fpcupdeluxe)

mORMot; Zeos 8; SQLite, PostgreSQL & MariaDB; VirtualTreeView

wp

  • Hero Member
  • *****
  • Posts: 11857
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...

JD

  • Hero Member
  • *****
  • Posts: 1848
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 - Lazarus 2.1/FPC 3.2 (built using fpcupdeluxe),
Linux Mint - Lazarus 2.1/FPC 3.2 (built using fpcupdeluxe)

mORMot; Zeos 8; SQLite, PostgreSQL & MariaDB; VirtualTreeView

wp

  • Hero Member
  • *****
  • Posts: 11857
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.

JD

  • Hero Member
  • *****
  • Posts: 1848
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 - Lazarus 2.1/FPC 3.2 (built using fpcupdeluxe),
Linux Mint - Lazarus 2.1/FPC 3.2 (built using fpcupdeluxe)

mORMot; Zeos 8; SQLite, PostgreSQL & MariaDB; VirtualTreeView

wp

  • Hero Member
  • *****
  • Posts: 11857
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.

 

TinyPortal © 2005-2018