Comments (3)
我是在Retrofit里面使用,提交参数的时候,因为是不确定类型,后端需要指定类型,我用了object,传了一个int,结果被转成了double
from gsonfactory.
小伙子,你只能确定好类型,否则 Gson 没办法按照你的想法来。还有框架是处理 Gson 解析容错的,这个问题不属于容错的问题,应该属于数据匹配的问题。
from gsonfactory.
from gsonfactory.
Related Issues (20)
- 集合类型和后端不匹配的情况下即使申明了默认值也会直接返回[null]? HOT 7
- 混淆需要做处理吗 HOT 1
- 库非常不错,但问题不是个好问题 HOT 7
- 打包成正式版解析有个BUG HOT 3
- 请严格按照 issue 模板来提问题,否则一律不受理
- 关于JsonCallback关联功能的优化建以 HOT 4
- Gson 2.9.0兼容性问题 HOT 3
- 请问此框架是不是不支持Map类型数据? HOT 2
- 解析json数据问题 HOT 6
- 适配gson2.9.1 HOT 8
- Gson版本升级到2.9.1之后ConstructorConstructor构造方法需要三个参数,望兼容 HOT 1
- 后台成功与失败返回类型不一致的问题 HOT 2
- json名字中带特殊符表情比如😁(unicode)的数据是否有容错处理 HOT 1
- json名字中带特殊符表情比如😁(unicode)的数据是否有容错处理 HOT 11
- 建议适配kotlin默认值 HOT 19
- 容错范围 HOT 2
- 能否通过getDelegateAdapter方法给所有TypeAdapter都套层代理,出错时直接跳到下一个呢 HOT 8
- [疑惑]:关于readme写的为什么gson解析后,kotlin默认值无效的问题不太对 HOT 10
- [Bug]:com.google.gson.internal.ConstructorConstructor$9.construct (ConstructorConstructor.java:262) HOT 3
- [建议]:Gson 框架转义问题 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gsonfactory.