added json macro