Method: Moped::BSON::ObjectId#to_json
- Defined in:
- lib/moped/bson/object_id.rb
#to_json(*args) ⇒ String
Convert the object to a JSON string.
153 154 155 |
# File 'lib/moped/bson/object_id.rb', line 153 def to_json(*args) "{\"$oid\": \"#{to_s}\"}" end |