Adds json formatting support.