Like the KV function, this supports either separated strings or JSON strings, base64-encoded or not. Fixes #1619 in theory.