It's not so simple but look at this one : https://github.com/Ailwuful/LDtk-Room_builder#readme
what about Godot?
Maybe this is what you are looking for:https://ldtk.io/api/#Godot