Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Dumping JSON for playlists returns invalid syntax #6894
Comments
|
How about:
Given you're using Javascript. |
|
This is expected behavior. |
When calling youtube-dl with the --dump-json argument and a playlist, like this:
then it returns invalid json, which looks like that:
I can't JSON.parse() it, because first, there is no comma between each element, and second, it has to be an array, so it should like that:
Or am I just missing something?
I'm using the latest version on npm.
As a workaround, you have to use --dump-single-json or -J to get a correct result.