created JSON data and included output in main code. JSON passing to main code