NoBrainer reuses the ActiveModel serialization logic.
The documentation can be found
It provides the usual methods
NoBrainer does not include attributes that are not set. An attribute set to
nil will be included.
You may set
Model.include_root_in_json = true to include the class name in the
JSON representation as such:
NoBrainer does not support XML by default. If you wish to use
feel free to
include ActiveModel::Serializers::Xml in your model.