Hacker News new | ask | show | jobs
by orrbenyamini 179 days ago
Hi HN - I’m the author of Jsonic.

I built it after repeatedly running into friction with Python’s built-in json module when working with classes, dataclasses, nested objects, and type hints.

Jsonic focuses on: - Zero-boilerplate serialization and deserialization - Strict type validation with clear errors - Natural support for dataclasses, enums, tuples, sets, nested objects etc. - Optional field exclusion (e.g. hiding sensitive data) - Extra features like transient fields definition, suport for __slots__ classes etc. - Clean interop with Pydantic models

The goal is to make JSON round-tripping feel Pythonic and predictable without writing to_dict() / from_dict() everywhere.

I’d really appreciate feedback on the API design and tradeoffs.

2 comments

all the quoted Python code on the medium post has broken formatting

your comment above has the same broken formatting

does not inspire confidence if you can't spot such obvious breakage

Appreciate the feedback, the formatting completely broke when pasting the code snippets into Medium.

I fixed the article formatting and some of the feedback i got for it.

Thanks for investing time reading !

> after repeatedly running into friction

Could you be more specific?