Rewire export to json