Confused on MongoDB "JSON"
-
I keep getting/looking lot of irregular format of JSON output from MongoDB. Is it me and anyone else got the same issue ? It just bring lot of unnecessary recoding. So sad to see MongoDB abuses JSON like this.
Wonde Tadesse
-
I keep getting/looking lot of irregular format of JSON output from MongoDB. Is it me and anyone else got the same issue ? It just bring lot of unnecessary recoding. So sad to see MongoDB abuses JSON like this.
Wonde Tadesse
Wonde Tadesse wrote:
So sad to see MongoDB abuses JSON like this.
First, isn't JSON inherently ripe for abuse?
Wonde Tadesse wrote:
MongoDB
Second, why are you abusing yourself? One might think I should use the joke icon for this post, but I'm actually quite serious. Marc
Latest Articles - APOD Scraper and Hunt the Wumpus Short video on Membrane Computing Hunt the Wumpus (A HOPE video)
-
Wonde Tadesse wrote:
So sad to see MongoDB abuses JSON like this.
First, isn't JSON inherently ripe for abuse?
Wonde Tadesse wrote:
MongoDB
Second, why are you abusing yourself? One might think I should use the joke icon for this post, but I'm actually quite serious. Marc
Latest Articles - APOD Scraper and Hunt the Wumpus Short video on Membrane Computing Hunt the Wumpus (A HOPE video)
Marc Clifton wrote:
First, isn't JSON inherently ripe for abuse?
Hum, Is it? Don't think so. It has simple and great spec. http://www.json.org/[^]
Marc Clifton wrote:
Second, why are you abusing yourself?
No choice at this time, except working with it.
Wonde Tadesse
-
Marc Clifton wrote:
First, isn't JSON inherently ripe for abuse?
Hum, Is it? Don't think so. It has simple and great spec. http://www.json.org/[^]
Marc Clifton wrote:
Second, why are you abusing yourself?
No choice at this time, except working with it.
Wonde Tadesse
Wonde Tadesse wrote:
Simple is good, but what annoys me about JSON is that, unlike XML, you can't publish a schema for it. You're left to the willy-nilly design of the developer and, unless the developer properly documents the JSON format (which seems rare in my experience) you really have no idea what the options are. That said, the same thing is true for XML, except that you CAN create an XSD (and should, in my opinion). Granted, there's some attempts at using JSON to create a JSON schema. But frankly, chalk up most of my rant to just being old school and liking structures defined, databases with real relationships and normalization, etc. Marc
Latest Articles - APOD Scraper and Hunt the Wumpus Short video on Membrane Computing Hunt the Wumpus (A HOPE video)
-
I keep getting/looking lot of irregular format of JSON output from MongoDB. Is it me and anyone else got the same issue ? It just bring lot of unnecessary recoding. So sad to see MongoDB abuses JSON like this.
Wonde Tadesse
MongoDB uses BSON rather than JSON. The extensions are to provide support for the richer types you get from BSON rather than JSON.
-
MongoDB uses BSON rather than JSON. The extensions are to provide support for the richer types you get from BSON rather than JSON.
According to their document it uses both. http://www.mongodb.com/json-and-bson[^]. Moreover .NET MongoClient library has
collection.FindOne().ToJson()
Which isn't presenting good format for my case.
Wonde Tadesse
-
Wonde Tadesse wrote:
Simple is good, but what annoys me about JSON is that, unlike XML, you can't publish a schema for it. You're left to the willy-nilly design of the developer and, unless the developer properly documents the JSON format (which seems rare in my experience) you really have no idea what the options are. That said, the same thing is true for XML, except that you CAN create an XSD (and should, in my opinion). Granted, there's some attempts at using JSON to create a JSON schema. But frankly, chalk up most of my rant to just being old school and liking structures defined, databases with real relationships and normalization, etc. Marc
Latest Articles - APOD Scraper and Hunt the Wumpus Short video on Membrane Computing Hunt the Wumpus (A HOPE video)
I see your point. However this doesn't mean you shouldn't comply with the existing spec. Atleast try to make it work with existing spec.
Wonde Tadesse