As a little hobby of mine I love digging through network requests in web apps and trying to use them. Everytime I do this I learn something new about web development. Today was no different!
I decided I wanted to mess with Walmart (despite them having a public API) and noticed no requests were returning JSON data. Instead, Walmart product pages return HTML pages with a JSON object embedded into the HTML code. (Example: https://www.walmart.com/ip/Sony-PlayStation-4-1TB-Slim-Gaming-Console/101507200)
Does anyone know why they do this? I assume it’s something to do with server side rendering and not doing extra network requests. However, if anyone else has any info I’d love to know.