added simple json formatter macro