4 ms·
I'd also like to remind anyone using DynamoDB: it cannot store empty strings. Let that sink in for a second. If you think you're going to be able to store JSON
by idbehold 9y ago
I'd also like to remind anyone using DynamoDB: it cannot store empty strings. Let that sink in for a second. If you think you're going to be able to store JSON documents you'll be in for a nasty surprise when you try to insert a valid JSON document and either the request fails or it converts any empty strings in your JSON document into nulls.
- koolba 9y agoAn empty string (zero bytes) isn't valid JSON. '""' vs '' (single quotes to illustrate the wrapper for the total content).
- idbehold 9y ago{"foo":""} That's valid JSON that cannot be stored in DynamoDB because the value of "foo" is an empty string. See previous discussion: https://news.ycombinator.com/item?id=13170746 https://news.ycombinator.com/item?id=13170746
- koolba 9y agoAh I didn't notice the distinction between storing the serialzied form (which would be non empty) and storing the record itself. Yes that does suck quite a bit and seems like a pretty bad decision.