to_json (pad, record=None, alt='_primary')

  • Method of Type
  • New in Lektor Version 2.0

This method is used to export a type definition to JSON. Primarily this is used to drive some more special widgets for the admin UI. For the moment this is largely undocumented as widgets are not yet customizable. For more information you will need to read the Lektor docs.