how to work with json files in spark