JsonView.render_json

You're seeing just the function render_json, go back to JsonView module for more information.
Link to this function

render_json(struct, view, opts)

View Source

Render a struct to a map with given options

  • fields: which fields are extract directly from struct
  • custom_fields: which fields are render using custom render_field/2 function
  • relationships: a list of {field, view_module} defines which fields are rendered using another view