add --json to p2b invocation