Recent

Author Topic: SuperObject ands lazarus  (Read 16689 times)

d.ioannidis

  • Full Member
  • ***
  • Posts: 233
    • Nephelae
Re: SuperObject ands lazarus
« Reply #15 on: July 12, 2016, 08:46:33 pm »
fpc-json
- only works on FPC (indeed), I need a solution that works on both Delphi/FPC.
- cannot stream TObjectList objects.

fpjson in fpc trunk is usable. you even have the RTTI interface so that you can stream TPersistent (see classes in fpjsonrtti).

no need to mess with trunk.
You can use the fixes 3.0 branch ( soon to be 3.0.2 ) to have the fpjsonrtti. See, in examples the demortti.pp .

regards,

guest58172

  • Guest
Re: SuperObject ands lazarus
« Reply #16 on: July 12, 2016, 11:02:20 pm »
The version distributed with 3.0.0 doesn't have options (yet). It's also usable but any trailing comma after an object or after an array prevents the json file to be parsed. Now trunk or fix branch it doesn't matter. Here it means "not  the sources that are distributed".

swierzbicki

  • Full Member
  • ***
  • Posts: 177
Re: SuperObject ands lazarus
« Reply #17 on: July 13, 2016, 07:03:21 am »
BBasile: if I understand you, there is right now no plublic fix available for this issue ? So, at the moment,  I'm stuck to use TCollection instead of Tobjectlist properties ?
Lazarus 1.6.2
fpc 3.0.0
wince/win32/win64
delphi berlin

guest58172

  • Guest
Re: SuperObject ands lazarus
« Reply #18 on: July 13, 2016, 07:27:52 am »
no, but i was talking about the syntax, not object arrays. afaik fcl-json uses TCollection as said previously, unless I've missed the change.

Thaddy

  • Hero Member
  • *****
  • Posts: 19165
  • Glad to be alive.
Re: SuperObject ands lazarus
« Reply #19 on: July 13, 2016, 10:23:13 am »
I might add that would be a plug in change (on the lower level) for any capable programmer. I don't see the point: TCollection is more performant.It is basically a doubly linked list with type safety and utility operations. Depends on application needs. Tlist is an array based abstraction.
« Last Edit: July 13, 2016, 10:28:13 am by Thaddy »
objects are fine constructs. You can even initialize them with constructors.

 

TinyPortal © 2005-2018