"key" is expected to be json encoded