ignore the typed versus untyped, but yeah you don't need this function.

```erlang
from_json (Bin) when is_list(Bin); is_binary(Bin) ->
  from_json (lwes_mochijson2:decode (Bin, [{format, eep18}]);
from_json ({Json}) -> ...
```