Moving keepalives to JSON with "ms" field.