You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Many pages include the interesting information in JSON in a script tag somewhere (e.g. to use it in a SPA).
Now, since every script tag looks the same and just the content matters, we'd need to select the correct once of many first. From there on, it should be the same process to generate the RSS.
select the correct script tag
handle global variable assignment in script-tag
support parsing json from <script>
Sometimes it's not JSON, but javascript (e.g. to assign JS objects to a global variable. Nuxt does that).
Javascript's JSON.stringify simply ignores non-json-able notations when serializing.
Many pages include the interesting information in JSON in a script tag somewhere (e.g. to use it in a SPA).
Now, since every script tag looks the same and just the content matters, we'd need to select the correct once of many first. From there on, it should be the same process to generate the RSS.
Sometimes it's not JSON, but javascript (e.g. to assign JS objects to a global variable. Nuxt does that).
Javascript's
JSON.stringify
simply ignores non-json-able notations when serializing.This behaviour is desirable for these cases.
The text was updated successfully, but these errors were encountered: