Fix media not being export in JSON view