module

BSON::ObjectId::StringConverter

This converter can be used to serialize the ObjectId to a String value.

@[JSON::Field(converter: BSON::ObjectId::StringConverter)]
property _id : BSON::ObjectId

Class methods

from_json(pull : JSON::PullParser) : BSON::ObjectId
Source
to_json(value : BSON::ObjectId, builder : JSON::Builder)
Source