Use JSON instead of Jason where possible

In some places, we need pretty printing so it's not possible to remove
the dependency.
This commit is contained in:
Claudio Ortolina
2025-03-23 08:34:25 +00:00
parent 15c20f6803
commit 1f43e1d993
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -61,8 +61,8 @@ config :logger, :console,
format: "$time $metadata[$level] $message\n",
metadata: [:request_id]
# Use Jason for JSON parsing in Phoenix
config :phoenix, :json_library, Jason
# Use JSON for JSON parsing in Phoenix
config :phoenix, :json_library, JSON
config :error_tracker,
repo: MusicLibrary.ErrorRepo,
@@ -4,13 +4,13 @@ defmodule MusicBrainz.Fixtures.Release do
def releases(:queen_greatest_hits) do
Path.join([@fixtures_folder, "releases - queen - greatest hits.json"])
|> File.read!()
|> Jason.decode!()
|> JSON.decode!()
end
def releases(:marbles) do
Path.join([@fixtures_folder, "releases - marillion - marbles.json"])
|> File.read!()
|> Jason.decode!()
|> JSON.decode!()
end
def release(:mystery_of_time) do