I have the following JSON file.
{ "reviewerID": "ABC1234", "productID": "ABCDEF", "reviewText": "GOOD!", "rating": 5.0, }, { "reviewerID": "ABC5678", "productID": "GFMKDS", "reviewText": "Not bad!", "rating": 3.0, } I want to parse without SparkSQL and use a JSON parser.
The result of parse that i want is textfile.
ABC1234::ABCDEF::5.0 ABC5678::GFMKDS::3.0 How to parse the json file by using json parser in spark scala?