Skip to content

Instantly share code, notes, and snippets.

@talentdeficit
Created September 27, 2010 21:16
Show Gist options
  • Save talentdeficit/599862 to your computer and use it in GitHub Desktop.
Save talentdeficit/599862 to your computer and use it in GitHub Desktop.
json_to_term(JSON) ->
try json_to_term(JSON, [])
catch Type:Error -> erlang:Type(Error)
end.
@talentdeficit
Copy link
Author

json_to_term(JSON) ->
try json_to_term(JSON, [])
catch error:badarg -> erlang:error(badarg)
end.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment