You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
com.alibaba.fastjson2.JSONException: illegal character ,
at com.alibaba.fastjson2.JSONReaderUTF16.readFieldNameHashCode(JSONReaderUTF16.java:635)
at com.alibaba.fastjson2.support.spring.data.mongodb.GeoJsonPointReader.readObject(GeoJsonPointReader.java:34)
at com.alibaba.fastjson2.support.spring.data.mongodb.GeoJsonPointReader.readObject(GeoJsonPointReader.java:9)
at com.alibaba.fastjson2.reader.ObjectReader_1.readObject(Unknown Source)
at com.alibaba.fastjson2.JSON.parseObject(JSON.java:453)
at com.fujfu.drainage.web.controller.FastJson2Test.testGpsMO(FastJson2Test.java:59)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.junit.platform.commons.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:688)
at org.junit.jupiter.engine.execution.MethodInvocation.proceed(MethodInvocation.java:60)
at
问题描述
简要描述您碰到的问题。
已知fastejson扩展包支持对mongo GeoJsonPoint类型的支持。 ps:2.0.7版本已经引入了
依赖
json字符串为下:
bean对象 属性
解析
报错如下:
经过反复测试发现,现在的解析类 GeoJsonPointReader 只支持如下格式,type和coordinates换个位置不行,增加多余属性也不行,也会报错。
麻烦请修复这个问题,因为前端参数传进来没法保证顺序和多余属性。
The text was updated successfully, but these errors were encountered: