Improve exporting to JSON
Compact on export to mobile