test: new function to read and parse json files.