bringing json into own package: protocol