integrated json structure code