DZ
json =Poison.decode!(~s({ "type": "confirmation", "id": 123 }))
IO.puts(Map.fetch(json, :type))возвращает error
Size: a a a
DZ
D
json =Poison.decode!(~s({ "type": "confirmation", "id": 123 }))
IO.puts(Map.fetch(json, :type))N|
json =Poison.decode!(~s({ "type": "confirmation", "id": 123 }))
IO.puts(Map.fetch(json, :type))N|
Poison.encode!(%{"age" => 27, "name" => "Devin Torres"})
#=> "{\"name\":\"Devin Torres\",\"age\":27}"D
D
ŹR
ŹR
D
ŹR
Z
D
D
D
Z
LL
D
LL
:jiffy. Если нужна лёгкая интеграция со сторонними либами, то JasonAB
json =Poison.decode!(~s({ "type": "confirmation", "id": 123 }))
IO.puts(Map.fetch(json, :type))D