mirror of
https://gitee.com/jmix/cuba.git
synced 2024-12-01 10:47:37 +08:00
JSON deserialization of collections fixed
This commit is contained in:
parent
db0a8479c1
commit
4e391584c0
@ -107,7 +107,7 @@ public class EntitySerialization implements EntitySerializationAPI {
|
|||||||
@Nullable MetaClass metaClass,
|
@Nullable MetaClass metaClass,
|
||||||
EntitySerializationOption... options) {
|
EntitySerializationOption... options) {
|
||||||
context.remove();
|
context.remove();
|
||||||
Type collectionType = new TypeToken<Collection<T>>(){}.getType();
|
Type collectionType = new TypeToken<Collection<Entity>>(){}.getType();
|
||||||
return createGsonForDeserialization(metaClass, options).fromJson(json, collectionType);
|
return createGsonForDeserialization(metaClass, options).fromJson(json, collectionType);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user