Hacker News new | past | comments | ask | show | jobs | submit login

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.



An empty string (zero bytes) isn't valid JSON.

'""' vs '' (single quotes to illustrate the wrapper for the total content).


   {"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


Ah 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.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: