Caused by: com.google.gson.JsonSyntaxException: com.google.gson.stream.MalformedJsonException: JSON forbids octal prefixes: 0918 at line 1 column 134
光阴似箭催人老,日月如移越少年。
I also use Gson进行json串解析的,没出现过什么问题。你碰到的这个异常是跟json串有关的,先检查一下jsonString to see if it meets the standards.
Gson
json
It is treated as an octal number, but it does not conform to the octal number format, so it is treated as a string
The string starting with 0 represents octal, but if 9 appears after you, an error will naturally be reported
I also use
Gson
进行json
串解析的,没出现过什么问题。你碰到的这个异常是跟json
串有关的,先检查一下json
String to see if it meets the standards.It is treated as an octal number, but it does not conform to the octal number format, so it is treated as a string
The string starting with 0 represents octal, but if 9 appears after you, an error will naturally be reported