Giter Club home page Giter Club logo

Comments (11)

jeromelebel avatar jeromelebel commented on September 25, 2024 1

no, but this should work : { "creationDate": { "$gte": { "$date" : timestamp_as_integer } } }

from mongohub-mac.

jeromelebel avatar jeromelebel commented on September 25, 2024

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.

aashay avatar aashay commented on September 25, 2024

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+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).


Reply to this email directly or view it on GitHub:
#25 (comment)

from mongohub-mac.

coopr avatar coopr commented on September 25, 2024

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.

jeromelebel avatar jeromelebel commented on September 25, 2024

Sorry, I think I had some problems with the original implementation...if I removed, it definitely not for the "fun" :-).

from mongohub-mac.

jeromelebel avatar jeromelebel commented on September 25, 2024

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.

xeraa avatar xeraa commented on September 25, 2024

So that means stuff like { "creationDate": { $gte: new Date(2012, 6, 5) } } doesn't work as well :(?

from mongohub-mac.

rlaferla avatar rlaferla commented on September 25, 2024

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.

jeromelebel avatar jeromelebel commented on September 25, 2024

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.

jeromelebel avatar jeromelebel commented on September 25, 2024

It should work now in 2.6 (about ObjectId)

from mongohub-mac.

jeromelebel avatar jeromelebel commented on September 25, 2024

I guess it is fixed, no answer.

from mongohub-mac.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.