Switch to Jason for json handling.

It's twice as fast and will be the standard in the coming ecto.
This commit is contained in:
lain 2018-03-27 16:09:08 +02:00
commit fbc187ac15
4 changed files with 11 additions and 1 deletions

View file

@ -9,6 +9,9 @@ use Mix.Config
config :pleroma,
ecto_repos: [Pleroma.Repo]
config :pleroma, Pleroma.Repo,
types: Pleroma.PostgresTypes
config :pleroma, Pleroma.Upload,
uploads: "uploads"
@ -61,6 +64,11 @@ config :pleroma, :media_proxy,
config :pleroma, :chat,
enabled: true
config :ecto, json_library: Jason
config :phoenix, :format_encoders,
json: Jason
# Import environment specific config. This must remain at the bottom
# of this file so it overrides the configuration defined above.
import_config "#{Mix.env}.exs"