Sunday, 6 January 2019

How to convert a buffer output to JSON.

I have a process that converts audio files to flac and mp3.i am using FFMPEG it output via the stdout a buffer. when this buffer is converted to string it when console logged it outputs a string that looks a lot like json (is should be json)but when i JSON.parse the bufferstring it doesn't parse i get the :SyntaxError: Unexpected end of JSON input at Object.parse (native)i become frustrated and wonder whats going on is the json malformed or something or am i handling the buffer wrong please assist.thank you for the help btw

Submitted January 06, 2019 at 09:41PM by robespierrem

No comments:

Post a Comment