added exporting motion as JSON format