Hacker News new | ask | show | jobs
Show HN: Internet Object – a thin, robust and schema oriented JSON alternative (internetobject.org)
4 points by aamironline 2473 days ago
2 comments

What are the core problems that stem from json usage? I’m all for challenging status quo but from my little experience, I wasn’t aware json was THAT problematic that we need to consider an alternative as drastically different as this project is.

Would love to here the problems that spurred this project.

Let me ask you these...

- Won't it be good if you exchange less amount of data?

- Won't it be good if serializer/deserializer validates the data before processing/loading/serializing, and you don't have to write special validation code?

- Won't it be good if you only pass, data and not the definitions over the wire? For example just send "Spiderman, 25" instead of { "name": "Spiderman", "age", 25 }

- Won't it be good if you do not mix, data and metadata (such as recordCount, nextPage, etc...)?

- Won't it be good if the object collection can be streamed through partial serialization?

Internet Object improves on all these front!

I have mentioned the issues with JSON in the story. Did you get a chance to read it? https://internetobject.org/the-story/
Looks nice, but I don't get the core ideas of why it is better than JSON schema or bson.

I don't know whether I like the syntax - there are too few examples.

BSON is a binary format, JSON schema is a separate mechanism which does not improve the structure of the serialized JSON data! Also, JSON does not enforce everyone to use schema!

When compared with JSON, Internet Object provides an integrated all-inclusive solution which serializes data into around 45% fewer bytes, has built-in validation support, keeps data and definition (and headers) separate. All these while keeping the format human-readable, programming language independent and simple!

We are working on the website and soon we'll release the playground with a lot more examples.

Hope this answers your query.

https://cuelang.org has some good ideas
agree, would love to see a bit more example, especially complex one.

Also I don't think there is any public library for it yet?

Yes, very soon we are releasing playground where you will be able to try and see the difference yourself. Please subscribe for the update! Thanks.