# Reusing atomized JSON binary keys

**URL:** <https://forum.elixirforum.com/t/reusing-atomized-json-binary-keys/48969>\
**Category:** Questions\
**Tags:** json, strings, atoms\
**Created:** [July 15, 2022, 9:19pm UTC](https://forum.elixirforum.com/t/reusing-atomized-json-binary-keys/48969 "2022-07-15T21:19:35Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![al2o3cr](https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/al2o3cr/32/3457_2.png) [@al2o3cr](https://forum.elixirforum.com/u/al2o3cr)\
**Post date:** [July 15, 2022, 11:00pm UTC](https://forum.elixirforum.com/t/reusing-atomized-json-binary-keys/48969/4 "2022-07-15T23:00:34Z")

</div>

The message in the `ArgumentError` is only the top half of the output from triggering that error in `iex` - the other half is from ` __STACKTRACE__ `:

```elixir
iex(4)> try do                                      
...(4)> Jason.decode("{\"24h\":0}", keys: :atoms!)
...(4)> rescue                                      
...(4)> error ->                                  
...(4)> __STACKTRACE__...(4)> end
warning: variable "error" is unused (if the variable is not meant to be used, prefix it with an underscore)
  iex:7

[
  {:erlang, :binary_to_existing_atom, ["24h", :utf8],
   [error_info: %{module: :erl_erts_errors}]},
  {String, :to_existing_atom, 1, [file: 'lib/string.ex', line: 2456]},
  {Jason.Decoder, :object, 6, [file: 'lib/decoder.ex', line: 322]},
  {Jason.Decoder, :parse, 2, [file: 'lib/decoder.ex', line: 55]},
  {:erl_eval, :do_apply, 7, [file: 'erl_eval.erl', line: 744]},
  {:erl_eval, :try_clauses, 10, [file: 'erl_eval.erl', line: 987]},
  {:elixir, :recur_eval, 3, [file: 'src/elixir.erl', line: 296]},
  {:elixir, :eval_forms, 3, [file: 'src/elixir.erl', line: 274]}
]

```

---

_[View the full topic](https://forum.elixirforum.com/t/reusing-atomized-json-binary-keys/48969)._
