I would like to convert dxf to/from json, but somehow there is no dxfread program.

I tried to make it by modifying dwgread to use dxf_read_file, which appears to be a drop in replacement for dwg_read_file since it appears to load to the same LibreDWG memory structure, but I get the invalid DWG error 0x800 on my DXF files that work fine with ezdxf.
The DXF version in case is AC1032 (> 2017).

I need to support all valid DXF files (to JSON); it's alright if exotic AutoCAD stuff is missing, I just need simple geometry.
Is LibreDWG just not there yet?

Also, LibreDWG fails to decode its own DXF files generated from dwg (i.e. when running dwgwrite on them).

dxfread missing
This is a GitHub Issue
repo:libredwg
owner:LibreDWG
Title : dxfread missing
Issue date:

--- start body ---
I would like to convert dxf to/from json, but somehow there is no dxfread program.

I tried to make it by modifying dwgread to use dxf_read_file, which appears to be a drop in replacement for dwg_read_file since it appears to load to the same LibreDWG memory structure, but I get the invalid DWG error 0x800 on my DXF files that work fine with ezdxf.
The DXF version in case is AC1032 (> 2017).

I need to support all valid DXF files (to JSON); it's alright if exotic AutoCAD stuff is missing, I just need simple geometry.
Is LibreDWG just not there yet?

Also, LibreDWG fails to decode its own DXF files generated from dwg (i.e. when running dwgwrite on them).

--- end body ---
