Comments (11)
no, but this should work : { "creationDate": { "$gte": { "$date" : timestamp_as_integer } } }
from mongohub-mac.
Unfortunately, MongoHub supports only strict json.
http://www.mongodb.org/display/DOCS/Mongo+Extended+JSON
I hope to change that later.
So in your case : {"_mentor":{"$oid":"123456"}}
You can leave this bug opened until mongohub supports TenGen (but don't expect anytime soon).
from mongohub-mac.
Weird, I swear this worked in the main repo version...
On Feb 1, 2012, at 5:15 AM, Jérôme [email protected] wrote:
Unfortunately, MongoHub supports only strict json.
http://www.mongodb.org/display/DOCS/Mongo+Extended+JSONI hope to change that later.
So in your case : {"_mentor":{"$oid":"123456"}}
You can leave this bug opened until mongohub supports TenGen (but don't expect anytime soon).
Reply to this email directly or view it on GitHub:
#25 (comment)
from mongohub-mac.
Same issue - damn annoying until I found this thread - how about changing the error message? That'd be easier than changing the support for strict JSON!
from mongohub-mac.
Sorry, I think I had some problems with the original implementation...if I removed, it definitely not for the "fun" :-).
from mongohub-mac.
If I'm not mistaken, the parsing was made using libboost. Keeping it was too painful. I had to find another way to parse the query. I didn't take too much time, since there are so many other things to do. The only parser I found was a strict json.
I agree it would be nice to parse TenGen.
from mongohub-mac.
So that means stuff like { "creationDate": { $gte: new Date(2012, 6, 5) } }
doesn't work as well :(?
from mongohub-mac.
Jerome - If I understand correctly, the app is using a C library (libboost)? If so, swap it out for an Objective-C one. It will be a lot easier to deal with! Here's one: https://github.com/johnezang/JSONKit
from mongohub-mac.
libboost was used in the original fork. It was used to support tengen format. But it was a nightmare to compile. That's why I removed it. I replaced it by libjson. It's not easy to modify in order to support non-standard json.
So right now I'm trying with json-c (in c). I don't care if it's in c, c++ or objective-c. It needs to be easy to compile, and it has to be correctly designed to be modified for this goal.
Thanks for this suggestion. I will look at that lib too, if I have time.
from mongohub-mac.
It should work now in 2.6 (about ObjectId)
from mongohub-mac.
I guess it is fixed, no answer.
from mongohub-mac.
Related Issues (20)
- Export collection as .json file HOT 1
- Structured JSON editor
- Crashes when searches for '/'
- Stop Stats from opening when double-clicking a collection
- compile error in mac os 10.11
- MongoHub Future? HOT 1
- Create Database it doesn't work for me
- A JavaScript error occurred in the main process
- (feat) Export/import multiple collections at once
- Password can be shared between two connections with the same url
- export/import connection configurations HOT 1
- Inserting Float Number Error
- Problem generating json
- Confirmation modal on "- Remove" in the Find tab
- Connect using Private key... HOT 1
- Selected tab repoen tab of stats of collection.
- Inserting _id using ObjectId()
- Connection to Atlas HOT 2
- Download link broken (compiled version) HOT 2
- Is this abandoned? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mongohub-mac.