This post was original published on my Postach.io blog on January 21st, 2015.
onGetRiverStream (and ends with
). (The actual JSON is embedded within. Here is a default river to look at.) I couldn’t figure out how to parse the file, and then I realized I could treat the file like text before parsing it. I used substring() to remove the 1st 18 characters and the final character, and then parsed the new string (which starts and ends with curly brackets). Stack Overflow was immensely helpful. See lines 13-15 below: