Changed json object:

- Created json format for later on
- Removed nested loop