changed json-get and json-do into functions rather than macros