Skip to content

Commit 0b76dc6

Browse files
committed
gson 多个key
1 parent 8465be6 commit 0b76dc6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

use/libs/noui/lib-gson.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public class JsonTest {
4545

4646
private transient int ignoreKey;
4747

48-
@SerializedName("key")
48+
@SerializedName(value = "key", alternate = {"index"})
4949
private int key;
5050

5151
@SerializedName("value1")

0 commit comments

Comments
 (0)