JSON Handler: Implementing a Custom Data Structure for JSON Objects
VerifiedAdded on 2019/09/13
|3
|836
|367
Practical Assignment
AI Summary
This assignment requires the creation of a custom JSON handler, a data structure designed to reconstitute JSON-encoded objects. The handler must parse JSON strings and implement at least one Java data structure interface. It needs to handle serializable objects, determine if objects implement Comparable, and identify an object's class. The data structure must support adding, retrieving, sorting, and searching for objects, as well as removing specific objects and exporting objects as JSON. The assignment also addresses the handling of nested JSON objects, where values can be other name-value pairs or arrays. The core functionality involves parsing JSON strings using string manipulation techniques, as well as parsing JSON objects and arrays. The goal is to build a robust data structure capable of managing complex JSON data, such as data from database rows.
1 out of 3