h-Klok / StatsWithJuliaBook

https://statisticswithjulia.org/
MIT License
1.08k stars 279 forks source link

Listing 1.9 : Web interface #34

Closed jfmolderez closed 2 years ago

jfmolderez commented 3 years ago

Not sure this is the good place to provide corrections. Anyway : The web address to get the json file is https://raw.githubusercontent.com/h-Klok/StatsWithJuliaBook/master/data/jsonCode.json (data instead of 1_chapter)

When parsing the resulting body, I had to chomp the string as follows : parsedJsonDict = JSON.parse(chomp(String(jsonWords.body)))