From 5235f5a3bf620a787d0d2ee0021336c893ffa013 Mon Sep 17 00:00:00 2001 From: Ben Busby Date: Mon, 14 Feb 2022 11:21:32 -0700 Subject: 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. --- test/farside_test.exs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/farside_test.exs') diff --git a/test/farside_test.exs b/test/farside_test.exs index d508b27..ff7ac35 100644 --- a/test/farside_test.exs +++ b/test/farside_test.exs @@ -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( -- cgit v1.2.3