Tradehub.Wallet.encode_object_in_alphanumeric_key_order

You're seeing just the function encode_object_in_alphanumeric_key_order, go back to Tradehub.Wallet module for more information.
Link to this function

encode_object_in_alphanumeric_key_order(obj)

View Source

Encode a map to JSON with all of the keys in alphabetical order (nested included).

Examples

iex> Tradehub.Wallet.encode_object_in_alphanumeric_key_order(%{b: 1, c: 2, a: 3, d: 4})
"{\"a\":3,\"b\":1,\"c\":2,\"d\":4}"

iex> Tradehub.Wallet.encode_object_in_alphanumeric_key_order(%{b: %{e: 1, f: 2}, c: 2, a: 3, d: 4})
"{\"a\":3,\"b\":{\"e\":1,\"f\":2},\"c\":2,\"d\":4}"

iex> Tradehub.Wallet.encode_object_in_alphanumeric_key_order("")
"\"\""