我有一些 json数据,可以从第三方服务器访问。它包含大量内容,并以
开头 [
{
"id":1845,
"title":"Llm In Transnational Oil, Gas And Energy Law By Online Learning",
"category_id":4,
"sub_category_id":null,
"timestamp":"2013-05-15T11:56:19.168508Z",
"start_time":"2013-09-29T15:00:00+01:00",
"end_time":"2014-12-19T19:30:00+00:00",
"summary":"Develop a deep, practical understanding of how to resolve the challenges posed\r\nby national authorities to oil, gas and energy production.\r\n"
...
即使使用JSONSerializer
和XMLSerializer
,我也无法将此JSON转换为XML。我收到以下错误:
ncname 0*20 illegal character
我还尝试了一些org.json
库,例如JSONTokenizer
和JSONArray
,它们只检索文本但不生成任何XML输出。