Ingesting JSON into Scala

This tutorial shows how to turn JSON into objects by deserializing the JSON into Scala Case Classes:

https://stackoverflow.com/questions/33135901/deserialization-of-case-object-in-scala-with-json4s

We can encapsulate the parameters for each JSON entity to be ingested as a case class like:

case class MyClass(paramFromJson0: DataType0, paramFromJson1: DataType1, ...)


Scala, as a functional language is very powerful in terms of parallel processing and I use it a lot for Spark jobs!

Have fun and keep coding,
Rick

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s