-define(GET(Field), | |
{Field, list_to_binary(wf:q(Field))}). | |
-define(GET_JSON(JSON_TERM), | |
fun(Field) when is_atom(Field) -> | |
FieldB = erlang:atom_to_binary(Field,utf8), | |
Val = proplists:get_value(FieldB, JSON_TERM), | |
{Field, Val} | |
end). |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment