Parse local js file/values to Swift

Hello, new member here! Very useful information from Chris, much appreciated.
I have a tutorial request: How to parse js data from a local file.

I was able to get my data from js to html and then to WKWebVew, but would like to bypass the chain and encode and decode straight from the js file.

My case is, I am reading control values from a streaming software on my computer and implementing them into an interface. I have the local js file, just don’t know how to encode/decode to Swift.

Thanks in advance!


Hey cvhvisuals,

I came across this video and recalled you asking for a tutorial on JS / JSON parsing. Hope it’s helpful!