我正在尝试从我的 java bean 类创建一个 json 对象,首先我创建一个StringBuffer
并在其中附加数据,然后将其转换StringBuffer
为 String,同时将其转换String
为 json 对象我收到此错误。
org.apache.sling.commons.json.JSONException: Expected a ':' after a key at character 129 of {data:{"id":"5345345","name":"dsfsdf","dep":"","ssc":"dgffdgfdg"},{"id":"123456","name":"SBI","dep":"654321","ssc":"State Bank"}}
第 129 位是倒数第二个字母。有语法问题吗?