How davio-2002/jsonparser works
Main Components Identification
a. Core Processing Layer
• Tokenizer
• Parser
• ErrorHandler
b. Model Layer (JSON Types)
• JsonValue (base class/interface)
• Concrete JSON types (Object, Array, String, Number, Boolean, Null)
c. Utilities Layer
• Utilities support functions
Specific Component Relationships
Input JSON String → Tokenizer → Parser → Output JSON Structure
• ↓ ↓
• ErrorHandler
• ↓
• Utilities
The model hierarchy should be shown as:
• JsonValue (Abstract)
• ↑
• ┌───┬───┬──┴──┬───┬───┬───┐
• Array Obj Str Num Bool Null
Implementation Notes
• The separation of concerns between tokenizing and parsing
• The extensible nature of the JsonValue hierarchy
• The central role of error handling throughout the system
• The support role of utilities