Correcting Server createJson() for keypairs