'object' is an array. Use JSONArray instead
Posted 向上的栗子
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了'object' is an array. Use JSONArray instead相关的知识,希望对你有一定的参考价值。
错误是:对象是一个数组,使用JSONArray代替
错误代码为:JSONObject json=JSONObject.fromObject(usertypeList);
正确代码为:JSONArray json=JSONArray.fromObject(usertypeList);
注意:JSONObject只是单个java对象转化json对象
以上是关于'object' is an array. Use JSONArray instead的主要内容,如果未能解决你的问题,请参考以下文章
The type 'System.Object' is defined in an assembly that is not referenced
undefined is not an object (evaluating 'RNFetchBlob.DocumentDir')
TypeError: undefined is not an object (evaluating '_this.view._component.measureInWindow')
TypeError: 'encoding' is an invalid keyword argument for this function
Bulid过程中中遇到的问题UnityEditor.BuildPlayerWindow+BuildMethodException: '' is an incorrect path fo
'react-scripts' is not recognized as an internal or external command