module Amazonite::Core::ArrayConverter(T)

Overview

JSON::Serializable converter for an Array(T) whose element type T needs its own converter (e.g. a list of enum-backed or blob members) - delegates each element to T.to_json/T.from_json rather than relying on Array's own default JSON mapping.

Defined in:

core/converters.cr

Class Method Summary

Class Method Detail

def self.from_json(pull : JSON::PullParser) : Array(T) #

[View source]
def self.to_json(values : Array(T), json : JSON::Builder) : Nil #

[View source]