JsonView.render_json
You're seeing just the function
render_json
, go back to JsonView module for more information.
Render a struct to a map with given options
fields
: which fields are extract directly from structcustom_fields
: which fields are render using customrender_field/2
functionrelationships
: a list of {field, view_module} defines which fields are rendered using another view