Created
November 5, 2014 09:17
-
-
Save zkessin/7918f89f622f8dde939e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-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