1 defmodule Pleroma.Docs.JSON do
2 @behaviour Pleroma.Docs.Formatter
3 def process(descriptions) do
4 config_path = "docs/generate_config.json"
5 {:ok, file} = File.open(config_path, [:write])
6 json = generate_json(descriptions)
12 def generate_json(descriptions) do
13 Jason.encode!(descriptions)