Read json file in spark java. It isn't convenient to keep JSON in such format.

Read json file in spark java. txt files, we can read them all using sc.