This make me think that I wont be the only one that could find my imcomplete proposal to stdlib useful.
The above code would be
@[JSON::Field(key: "complicated", converter: Thing::NestedArrayConverter)]
property nested_array : Array(String)
module NestedArrayConverter
def self.from_json(pull)
pull.on_key!("object", "nested", "deeply") do
return Array(String).new(pull)
end
end
end