Separate JSON parser from file retrieval