Where possible, use built-in JSON instead of Jason
Note that it's not possible to replace any call where we encode and pretty print, as JSON doesn't have such functionality.
This commit is contained in:
+1
-1
@@ -11,7 +11,7 @@ defmodule OpenAI do
|
||||
end
|
||||
end)
|
||||
|
||||
result = Agent.get(collector, & &1) |> Jason.decode!()
|
||||
result = Agent.get(collector, & &1) |> JSON.decode!()
|
||||
Agent.stop(collector)
|
||||
{:ok, result}
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user