pietrop / slate-transcript-editor

A React component to make correcting automated transcriptions of audio and video easier and faster. Using the SlateJs editor.
https://pietrop.github.io/slate-transcript-editor
Other
75 stars 33 forks source link

Captions json export returns [object Object] #4

Closed pietrop closed 4 years ago

pietrop commented 4 years ago

Describe the bug

Captions json export returns [object Object]

To Reproduce Steps to reproduce the behavior:

  1. Go to storybook
  2. Click on export caption
  3. Choose json
  4. Open the file
  5. See error, the content is [object Object]

Expected behavior

Expect content of the file to be a valid json, similar to this Screenshots

327B6D75-4FA4-4B5F-8EE6-5FB6F4EC5DF6

39011CE4-DE68-40CC-9308-018CAF2C3F89

Additional context

Most like it due to a missing JSON.strigify in the output

pietrop commented 4 years ago

fixed