Added json function to code.