integration over JSON - WIP