我正在尝试将JSON值上传到AWS Dynamo,但当我上传具有任何属性值为""的值时,它似乎会给我一个400类型的错误。我编写的应用程序是一个C#应用程序。
最好的方法是什么来删除任何值为""的键?我已经看到如何删除null值,但我不确定是否适用。
请说:
{myObj: { x: "", y: "test str" }, myStr: "hello world!"}
Becomes:
{myObj: { y: "test str" }, myStr: "hello world!"}
obj.x == null
改为obj.x == string.Empty
? - Stephen Gilboystring.Empty
匹配的属性。 - Stephen Gilboy