changed json structure as Dmintry K. asked