Recent

Author Topic: New versions of lazarus use JSON instead XML  (Read 6826 times)

edgarrod71

  • Jr. Member
  • **
  • Posts: 68
New versions of lazarus use JSON instead XML
« on: February 20, 2016, 04:08:23 am »
I've been learning about JSON, and it would be a great idea to change the forms files into this format instead xml, and svg graphic support.

skalogryz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2770
    • havefunsoft.com
Re: New versions of lazarus use JSON instead XML
« Reply #1 on: February 20, 2016, 04:43:53 am »
JSON! yay! ... wait. what's the benefit?

edgarrod71

  • Jr. Member
  • **
  • Posts: 68
Re: New versions of lazarus use JSON instead XML
« Reply #2 on: February 20, 2016, 06:41:52 am »
It's more readable, it's more lightweight, and maybe it can improve lazarus in compiling...

Leledumbo

  • Hero Member
  • *****
  • Posts: 8744
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: New versions of lazarus use JSON instead XML
« Reply #3 on: February 20, 2016, 08:01:29 am »
I've been learning about JSON, and it would be a great idea to change the forms files into this format instead xml, and svg graphic support.
Form files are in .lfm format, a variant of object type definition in Pascal. XMLs are only used for configuration files. There's no clear benefit for Lazarus if they're replaced with JSONs. It doesn't affect anything in the IDE (do you think the IDE's less-than-1-second load time is slow?), nor user projects, let alone the compiler.

Thaddy

  • Hero Member
  • *****
  • Posts: 14157
  • Probably until I exterminate Putin.
Re: New versions of lazarus use JSON instead XML
« Reply #4 on: February 20, 2016, 09:18:24 am »
JSON! yay! ... wait. what's the benefit?

There is a small benefit in that serializing/deserializing components becomes a little more standard.
I have been using custom code for years to populate Delphi or FPC components over a network based on dfm/lfm format whereas I use json for other objects, even in between different languages (deserialize to ecmascript or C++ objects).
So, yes, I can see a point in using json. But it is not that important.

As for SVG support: I'd rather see html canvas support. (I am working on that off and on, btw, nothing publishable yet)
« Last Edit: February 20, 2016, 09:27:45 am by Thaddy »
Specialize a type, not a var.

 

TinyPortal © 2005-2018