Implement json macros with auto date