This tutorial shows how to turn JSON into objects by deserializing the JSON into Scala Case Classes:
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,