Using structured entries. (...)

- Moved and refactored JSON writer into SimpleJsonWriter.