Add some macros for upward compatibility from the old JSON parser.