Added various macros and functions for easier json object manipulation