Upload JSON object to KV
Is it possible to update KV using a local JSON file?
My idea would be to update the file locally and call the enpoint kv.put to update the KV entries
2 Replies
according to the docs, yes, you can update it with a json file https://developers.cloudflare.com/kv/reference/kv-commands/#writing-all-the-key-value-pairs-found-in-the-allthethingsuploadjson-file
Thanks a lot fr your answer! It works but I was expecting to have a JSON object and the value and then retrieve it by the key but seems it does not see it as a valid JSON