Creoox json serializer

This commit is contained in:
Thomas Krijnen
2025-11-17 14:06:39 +01:00
parent d6daa64c48
commit 487a4f345d
8 changed files with 1035 additions and 7 deletions
@@ -672,7 +672,7 @@ class serializers:
# so no wrap_buffer_creation() for these serializers
xml = ifcopenshell_wrapper.XmlSerializer
buffer = ifcopenshell_wrapper.buffer
# gltf and hdf5 availability depend on IfcOpenShell configuration settings
# gltf, hdf5, collada and json availability depend on IfcOpenShell configuration settings
try:
gltf = ifcopenshell_wrapper.GltfSerializer
except:
@@ -685,6 +685,10 @@ class serializers:
collada = ifcopenshell_wrapper.ColladaSerializer
except:
pass
try:
json = ifcopenshell_wrapper.JsonSerializer
except:
pass
# ttl is always available since it doesn't depend on any C++ libraries,
# just people might be using an outdated binary
if hasattr(ifcopenshell_wrapper, "TtlWktSerializer"):