aparx / jsonic

A fast, efficient and heavily extensible Java library for parsing, serializing and deserializing JSON. Supports POJO serialization and deserialization.
0 stars 0 forks source link

Create JSON printers #4

Open aparx opened 14 hours ago

aparx commented 14 hours ago

A printer is a standalone interface whose purpose is to convert an incoming object into a JSON deserializable sequence of characters.

The printer interface accepts a generic parameter T that represents the accepting type of object.

There should be some kind of context to measure the current line the printer enters, and also the printer does not directly return a string, but furthermore "prints" its converted data into that context-alike object.

A printer is the serialization of JSON.