added code snippet for json and changed folder hierarchy