Recent

Author Topic: Porting Json  (Read 3356 times)

sysgambler

  • New member
  • *
  • Posts: 8
Porting Json
« on: September 12, 2014, 09:56:10 pm »
I'm searching for the best way to implement some json code for cross plataform/compiler(Lazarus and Delphi) use. Superobject? Others?

marcov

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 7496
Re: Porting Json
« Reply #1 on: September 12, 2014, 10:05:05 pm »
Port back the FPC json implementation?   

sysgambler

  • New member
  • *
  • Posts: 8
Re: Porting Json
« Reply #2 on: September 12, 2014, 10:22:21 pm »
Sorry?

marcov

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 7496

Graeme

  • Hero Member
  • *****
  • Posts: 1430
    • Graeme on the web
Re: Porting Json
« Reply #4 on: September 13, 2014, 09:01:08 pm »
Marco's idea is very good. In fact, I was thinking of doing that too, so I could use fcl-json for FPC and Delphi in the tiOPF project. We could possibly work on this together - it shoudn't be too hard.
--
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

serbod

  • Full Member
  • ***
  • Posts: 127
Re: Porting Json
« Reply #5 on: September 13, 2014, 10:12:16 pm »
I'm searching for the best way to implement some json code for cross plataform/compiler(Lazarus and Delphi) use. Superobject? Others?

I suggest abstract storage for fundamental types (string, number, list, dictionary), that can be serialized to (or deserialized from) different formats - XML, JSON, ASN.1, BENCODE, YAML, etc..