You need to go through all the body properties, then all the fixtures and their properties etc, set up identical body def and fixture defs, then create. It's not too difficult but can be a bit tedious. You might be interested in this, source code available: http://www.iforce2d.net/b2djson/#replicating