1. Learn
  2. /
  3. Courses
  4. /
  5. Importing Data in Java

Connected

Exercise

Handling missing JSON values

While merging employee data, you notice some records have incomplete information marked as "N/A". Before analysis, you need to identify these gaps and handle them properly.

Tablesaw can be configured to recognize custom placeholders as missing values, allowing you to detect and filter incomplete records.

The JsonReader, JsonReadOptions, and Table classes have been imported for you.

Instructions

100 XP
  • Configure the JSON options to treat "N/A" as a missing value.
  • Load the employee data into a table.
  • Filter for rows with missing department values.