ŹR
Size: a a a
ŹR
ŹR
ŹR
iex(14)> Enum.map(1..33, fn el -> {"#{el}", el} end) |> Enum.into(%{}) |> Jason.encode
{:ok,
"{\"10\":10,\"24\":24,\"14\":14,\"12\":12,\"16\":16,\"4\":4,\"26\":26,\"32\":32,\"8\":8,\"5\":5,\"3\":3,\"19\":19,\"9\":9,\"7\":7,\"13\":13,\"2\":2,\"11\":11,\"15\":15,\"29\":29,\"17\":17,\"25\":25,\"28\":28,\"18\":18,\"27\":27,\"23\":23,\"31\":31,\"6\":6,\"30\":30,\"20\":20,\"22\":22,\"21\":21,\"1\":1,\"33\":33}"}
СИ
iex(1)> Jason.encode(%{a: 1, b: 2})
{:ok, "{\"a\":1,\"b\":2}"}
iex(2)> Jason.encode(%{b: 1, a: 2})
{:ok, "{\"a\":2,\"b\":1}"}
iex(3)> Jason.encode(%{b: 1, a: 2, c: 3})
{:ok, "{\"a\":2,\"b\":1,\"c\":3}"}
SP
СИ
iex(14)> Enum.map(1..33, fn el -> {"#{el}", el} end) |> Enum.into(%{}) |> Jason.encode
{:ok,
"{\"10\":10,\"24\":24,\"14\":14,\"12\":12,\"16\":16,\"4\":4,\"26\":26,\"32\":32,\"8\":8,\"5\":5,\"3\":3,\"19\":19,\"9\":9,\"7\":7,\"13\":13,\"2\":2,\"11\":11,\"15\":15,\"29\":29,\"17\":17,\"25\":25,\"28\":28,\"18\":18,\"27\":27,\"23\":23,\"31\":31,\"6\":6,\"30\":30,\"20\":20,\"22\":22,\"21\":21,\"1\":1,\"33\":33}"}
ŹR
Enum.map(1..33, fn el -> {"#{el}", el} end) |> Enum.into(%{}) |> :jiffy.encode
"{\"10\":10,\"24\":24,\"14\":14,\"12\":12,\"16\":16,\"4\":4,\"26\":26,\"32\":32,\"8\":8,\"5\":5,\"3\":3,\"19\":19,\"9\":9,\"7\":7,\"13\":13,\"2\":2,\"11\":11,\"15\":15,\"29\":29,\"17\":17,\"25\":25,\"28\":28,\"18\":18,\"27\":27,\"23\":23,\"31\":31,\"6\":6,\"30\":30,\"20\":20,\"22\":22,\"21\":21,\"1\":1,\"33\":33}"
ŹR
ŹR
СИ
jsx:encode(#{<<"library">> => <<"jsx">>, <<"awesome">> => true}).
<<"{\"awesome\":true,\"library\":\"jsx\"}">>
ŹR
jsx:encode(#{<<"library">> => <<"jsx">>, <<"awesome">> => true}).
<<"{\"awesome\":true,\"library\":\"jsx\"}">>
A
A
SP
СИ
SP
SP
SP
СИ