module BSON::ObjectId::StringConverter

Overview

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

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

Defined in:

Class Method Summary

Class Method Detail

def self.from_json(pull : JSON::PullParser) : BSON::ObjectId #

def self.to_json(value : BSON::ObjectId, builder : JSON::Builder) #