Enhanced to read *.json.