Question: How can I prase JSON data from URL to Scala Eclipse? I am trying to parse data in the following link: https://www.fazerfoodco.fi/modules/json/json/Index?costNumber=3087&language=en to scala project

How can I prase JSON data from URL to Scala Eclipse?

I am trying to parse data in the following link:

https://www.fazerfoodco.fi/modules/json/json/Index?costNumber=3087&language=en

to scala project (eclipse)

It seems like there has been major changes for JSON parsing between 2.11 and 2.12 and the instructions I found online are outdated and doesn't work with the latest version of the scala.

I need a demonstration of a code of how to parse data from the link to eclipse ( println to console)

Such as, MenusForDays -> SetMenus -> components of 3rd element

"Pulled pork cheek stew with apricots (A ,G ,L ,M ,VS)", "Potato wedges seasoned with rosemary (G ,L ,M ,Veg)", "Roasted zucchini (* ,G ,L ,M ,Veg)"

How can I parse this particular data into eclipse?

Any json library such as, json4s, Play framework would do.

Thanks.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!