cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 
Wishes forum

Add JSON File Format Support

Nader Belal
Mentor

Hello everyone & Graphisoft,

 

I would like to request from Graphisoft developer team to add support for JSON file type for every aspect that XML files do provide to Archicad, including GDL I/O.

I know that I have used few words, but my request is not trivial, besides:

  1. XML is quiet verbose (and big in size).
  2. Parsing XML file can sometimes prove to be problematic.
  3. Almost all database do support JSON file formats.

 

Thank you in advance

A good friend of mine have once told me that I´m so brute that I´m capable of creating a GDL script capable of creating GDLs.
6 REPLIES 6

Francois_MCD
Advocate

This sounds like a valid request for this compatibility feature @Nader Belal 
With the growing number of web apps & integrations for BIM data use, the compatibility JSON makes a lot of sense.

 

Regards
Francois Swanepoel

Hiking, Motorbiking, Good food, Gr8! Beer & excellent conversation 😉
www.fusionBIM.co.za - Architecture - BIM Implementation - ArchiCAD Training
www.Scirrus.co - LiDAR Digital Survey - Scan2BIM As-Built - Property Compliance
www.BIM2fusedVR.com - Virtual Reality & Render Studio

stefan
Advocate

When you use XML to import data into your model, there can probably be more sanity checks implemented, since the XML is validated against an XSD. Think about importing configurations, attributes, classifications.

 

I fear that such validation may be less severe and more prone to errors with JSON. I may be wrong and I know that my colleagues in DEV typically use JSON for almost anything. 

 

Any idea what the risks would be? Higher chance of corrupting the Archicad project file?

--- stefan boeykens --- bim-expert-architect-engineer-musician ---
Archicad26/Revit2022/Rhino7/Unity/Solibri/Zoom
MBP2019:i9Octo2.4GHz32GBVega20/Ventura+Win11
ARCHICAD-user since 1998

I don't know enough neither to give you the answer that you seek, nor do I know enough about XSD.

But I do see a trend that have already been set and it's just a matter of time that it takes up momentum to anything and everything that surrounds DEV.

Besides, if we would go the lazy route, developers may parse back and forth from XML to JSON.

A good friend of mine have once told me that I´m so brute that I´m capable of creating a GDL script capable of creating GDLs.

JSON  files have a validation Schema similar to XSD.  Most agree it is easier to use and understand. My opinion is that ( with the JSON Schema file) you can have as much control (constraint) or not, over your data validation as you like. A fast overview of the JSON Schema is on YouTube

JSON Schema Overview 

 

That is a overview only. Not all of the options are explained.

There are other videos on YouTube which describe the format and attributes of the Schema format file.

IMNOHO -- The JSON schema is more versatile and powerful than XSD. In fact, a JSON schema is used and required to validate the data interface between the Python API and the C++ API when using the CommandHandler function(s). Graphisoft has said, in the past, that they may move to the JSON format and Schema for other uses in future -- But don't count on it.

Gerry

Windows 10 - Visual Studio 2019; ArchiCAD 26

Thanks for this valuable insight Gerry.

This is most helpful for us that are interested in creating web based outputs & integrations for our projects but have no working knowledge on how to get there without help from skilled pros like you.

Regards
Francois Swanepoel

Hiking, Motorbiking, Good food, Gr8! Beer & excellent conversation 😉
www.fusionBIM.co.za - Architecture - BIM Implementation - ArchiCAD Training
www.Scirrus.co - LiDAR Digital Survey - Scan2BIM As-Built - Property Compliance
www.BIM2fusedVR.com - Virtual Reality & Render Studio

Abraham Smith
Contributor

I would venture to say, without being very knowledgeable in depth about the GDL language or Json, I have been testing ChatGPT-3 trying to get it to at least give me an example of a raw line of code or NURBS forms in GDL language and no I have achieved it, since sometimes it gives me results in Json. Another thing that can be interesting is to open a window and help yourself with artificial intelligence (for those who are learning to program). 

 

Regards

BIM Manager

Start a new conversation!

Still looking?

Browse more topics

Back to forum

See latest solutions

Accepted solutions

Start a new discussion!