input: Write a function to extract data from a MongoDB database and return it as a JSON object.
  assert get_data_from_db() == {'result': [{'id': 1, 'name': 'John Doe', 'age': 25}, {'id': 2, 'name': 'Jane Doe', 'age': 30}]}
  assert get_data_from_db() == {'result': [{'id': 3, 'name': 'Alice', 'age': 22}, {'id': 4, 'name': 'Bob', 'age': 28}]}
  assert get_data_from_db() == {'result': [{'id': 5, 'name': 'Charlie', 'age': 35}, {'id': 6, 'name': 'Daisy', 'age': 40}]}
output: def get_data_from_db():
      from pymongo import MongoClient
      import json
  
      client = MongoClient('localhost', 27017)
      db = client['your_database']
      collection = db['your_collection']
  
      data = list(collection.find({}, {'_id': 0}))
      
      return {'result': data}