Fixed export of JSON