annotation CrSerializer::Annotations::Skip

Overview

Indicates that a property should not be serialized or deserialized.

class Example
  include CrSerializer

  def initialize; end

  property name : String = "Jim"

  @[CRS::Skip]
  property password : String? = "monkey"
end

Example.new.to_json # => {"name":"Fred"}

Defined in:

annotations.cr