生成的地图条目键 9144667160333333333 变为 9144667160333334000 JSON
Map entry key 9144667160333333333 becomes 9144667160333334000 in produced JSON
我正在使用 restygwt、jersey 和构建网络应用程序。如果我的资源发送带有字符串的地图作为某些条目键,例如 "9144667160333333333"
,我会在方法回调中收到带有键 "9144667160333334000"
的条目。如果我的资源发送类似 "a9144667160333333333"
的字符串,那么我会正确接收它。
我的资源看起来像
@GET
@Path("/get/getpoints/{projectId}")
@Produces(MediaType.APPLICATION_JSON)
public List<Map<String, String>> getAZPoints(@PathParam("projectId") BigInteger projectID) { ... }
你能帮我解决这个问题吗?
我在这里发现了同样的问题https://github.com/resty-gwt/resty-gwt/issues/119。作为解决方案,我将我的号码作为 "a" + BigInteger 发送并在客户端对其进行解码。
我正在使用 restygwt、jersey 和构建网络应用程序。如果我的资源发送带有字符串的地图作为某些条目键,例如 "9144667160333333333"
,我会在方法回调中收到带有键 "9144667160333334000"
的条目。如果我的资源发送类似 "a9144667160333333333"
的字符串,那么我会正确接收它。
我的资源看起来像
@GET
@Path("/get/getpoints/{projectId}")
@Produces(MediaType.APPLICATION_JSON)
public List<Map<String, String>> getAZPoints(@PathParam("projectId") BigInteger projectID) { ... }
你能帮我解决这个问题吗?
我在这里发现了同样的问题https://github.com/resty-gwt/resty-gwt/issues/119。作为解决方案,我将我的号码作为 "a" + BigInteger 发送并在客户端对其进行解码。