Y
Hacker News
new
|
ask
|
show
|
jobs
by
dtech
5 days ago
It's pretty normal, almost all libs work this way. This way you can parse the JSON string into the matching data structure or print it into a string, and when building you can ensure it's valid JSON.