Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Data Stores JSON Encoded?

First, Can i save JSON encoded data into a datastore, and Second, if so, how much data would it take up in the datastore of the one async?

ds:SetAsync("String",str) --str is more than 65k characters (won't save because of data limits)
ds:SetAsync("JSON",bigjsoncode) --if you can save, how much data would it take up in the async of ds?

1 answer

✓ Accepted answer

Encoded JSON data would be saved into the database just as a string, as that effectively is what JSON is. It's just a string which has been formatted in a certain way to be easily transferred. Saving your string as a JSON wouldn't lower your count at all, in fact I'd be likely to increase it if anything! Each space for instance would take up 3 characters as "%20" rather than just a space key. Technically, the database will already transfer your data to a JSON format anyway, so this whole explanation is useless!

2 comments

0

ok thanks, so I shouldn't bother switching my tables to json strings in datastores?

0

There's absolutely no point! It does it automatically for you :P

This discussion is preserved as it was. New answers, comments, and votes are closed.