created JSON method