Enrich json records in scala with and without Apache Spark

JSON (JavaScript Object Notation) is a lightweight data-interchange format. It is easy for humans to read and write. It is easy for machines to parse and generate.

One of the Json representation is a collection of name/value pairs. In various languages, this is realized as an object, record, struct, dictionary, hash table, keyed list, or associative array

Json is one of the major data representations for both Human being and machine. Social media companies send you streaming data if you request them through their API, for example, Twitter can…