1
0
Fork 0
mirror of https://github.com/benbusby/farside.git synced 2025-04-30 07:30:02 +00:00

Replace poison dependency w/ jason

The dependency took a long time to compile, and was causing problems for
a user who was attempting to build the project.

Since it wasn't a strictly necessary dependency, and `jason` was already
included in the project, all instances of `poison` have been replaced
with `jason`.

The only additional code that this introduced was converting from
generic maps returned by `Jason.decode` into Service structs.
This commit is contained in:
Ben Busby 2022-02-14 11:21:32 -07:00
parent 51aba2ad78
commit 5235f5a3bf
No known key found for this signature in database
GPG key ID: B9B7231E01D924A1
3 changed files with 9 additions and 4 deletions

View file

@ -45,7 +45,7 @@ defmodule FarsideTest do
test "/:service" do
{:ok, file} = File.read(@services_json)
{:ok, service_list} = Poison.decode(file, as: [%{}])
{:ok, service_list} = Jason.decode(file)
service_names =
Enum.map(