I am trying to get the document from MongoDB, where i have to pass the request query as json string.
for example : if i need a first document in desc. i will query as db.collection_name.find({"_id":123}).sort({"update_ts":-1}).limit(1).
How to pass this as in json?