How to export/print a whole datastore

Hi there,

I am trying to remake and change how my datastore was created, it was made a long time ago, and I want to move to a web database instead.

For me, the best way to do this is to export all the data that is stored, but as this isn’t a feature I am trying to print all the data in a datastore?

The data can be fetched by doing, but does anyone know the best way to loop though all the values or print everything that’s inside it?

game:GetService("DataStoreService"):GetOrderedDataStore("CashSaving")

I’d use a loop to loop through every single page in the datastore

Use a while loop and get values of your DataStore, then store it in a normal Dict, convert it into JSON data and send it to your endpoint.