|
|
|
Ask HN: JSON-schema or protobuf?
|
|
1 points
by sourabh86
3656 days ago
|
|
We have been using JSON for our REST APIs and JSON-schema (json-schema.org) to define the data format. We have java and .net generators to create POJO and POCO classes from JSON-schema.
Recently, I got to know about Protocol Buffers from Google and was wondering what are the benefits of it over JSON. A simple Google search did not give any satisfactory answer. Hoping to get some insight from people who have used both, better if moved from one to another. |
|
From a software engineering perspective they seem pretty similar to me, particularly in that NEITHER has support for a fixed decimal format which is essential for doing money calculations and getting the right answers.