lua.box2d.world.info
info = world:info()
This returns the def table used to create the world along with as much updated information as we have available, mostly intended as a debugging aid.
This is the actual def table (some values are hard to query later) so if you edit it or if you create this object using a non unique def table things can get strange.