Package com.leumanuel.woozydata.util
Class DataJsonReader
java.lang.Object
com.leumanuel.woozydata.util.DataJsonReader
Utility class for reading JSON files into DataFrame objects.
Uses Jackson ObjectMapper for JSON parsing.
- Version:
- 1.0
- Author:
- Leu A. Manuel
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
DataJsonReader
public DataJsonReader()
-
-
Method Details
-
readJSON
Reads a JSON file and converts it to a DataFrame. Expects JSON array of objects with consistent structure.- Parameters:
filePath- Path to the JSON file to read- Returns:
- DataFrame containing the JSON data
- Throws:
Exception- if there is an error reading or parsing the file
-