[ie] Add _search_nuxt_json helper (#13386)

* Adds InfoExtractor._search_nuxt_json for webpage extraction
* Adds InfoExtractor._resolve_nuxt_array for direct use with payload JSON
* Adds yt_dlp.utils.jslib module for Python solutions to common JavaScript libraries
* Adds devalue.parse and devalue.parse_iter to jslib utils

Ref:
* https://github.com/nuxt/nuxt/commit/9e503be0f2a24f4df72a3ccab2db4d3e63511f57
* https://github.com/Rich-Harris/devalue/blob/f3fd2aa93d79f21746555671f955a897335edb1b/src/parse.js

Authored by: bashonly, Grub4K

Co-authored-by: Simon Sawicki <contact@grub4k.dev>
This commit is contained in:
bashonly
2025-06-12 22:15:01 +00:00
committed by GitHub
co-authored by Simon Sawicki
parent ba090caeaa
commit 51887484e4
5 changed files with 592 additions and 0 deletions
+1
View File
@@ -0,0 +1 @@
# Utility functions for handling web input based on commonly used JavaScript libraries