I need to grab JSON from a WKWebView. Without creating extra classes and structs for the json payload, I am not parsing it, how can I do this?
I looked at a lot of posts online about wkwebview / javascript, and while informative, often they're more complex than I need.
Basically all I am doing is grabbing the json payload. And saving that payload as a string value I can use wherever. Thats all.
But I just can't seem to get my head around it. Lets say we don't know what the payload will be and for our part we don't care. We just store it in a string like "data" .