0

I have document structure like:

    { "_id": { "$oid" : "51711cd87023380037000001" }, 
    "dayData": "{ "daysdata":{"date":"02-12-2013","week_day":"","month":"","date_day":"","year":"2013"}}" 
    }

I want to extract document having date = "02-12-2013" in the above. Here i am trying to query on a value which is also a json. Please let me know how to use mongodb java driver to extract this

4

1 回答 1

0

不回答(stackoverflow 不会让我评论,因为我没有足够的分数!)

您的包含 json 的字符串存在语法错误。"后面有单"year":"2013"

您可能必须解决第一个问题。

于 2013-04-22T09:22:39.987 回答