douci2022 2013-07-26 06:56
浏览 21
已采纳

Sencha Touch 2.x [WARN] [Ext.data.reader.Reader #process]找不到JSON对象

i am trying to get data from mysql as json to a nested list in Sencha Touch. Only Problem is i get this Error and dont know why:

[WARN][Ext.data.reader.Reader#process] Unable to parse the JSON returned by the server:

Error: You're trying to decode an invalid JSON String: data=[ "name":rezepte{"id":"1","name":null,"alter":"Ab 6.Monat","kategorie":null,"tageszeit":"Mittags","portionen":"1 baby- und 1 Erwachsenenportion","bild":"\u0000\u0000\u0000\u0000\u0000","vorrat":"2", "zubereitungszeit":"45","zubereitung0":null,"zubereitung1":null,"zubereitung2":null,"info":null}]

[WARN][Ext.data.reader.Reader#process] JSON object not found

fields containing utf-8 signs appear as null. DB is utf-8_general so i thought it might be the way the json returned looks. switch around but didnt work.

Please let me know what you need to help me.

  • 写回答

1条回答 默认 最新

  • dongpang4470 2013-07-26 10:29
    关注

    Your JSON is invalid or your server responding with invalid JSON.

    It should be like this

    {
       "name":"rezepte",   
          "id":"1",
          "name":null,
          "alter":"Ab 6.Monat",
          "kategorie":null,
          "tageszeit":"Mittags",
          "portionen":"1 baby- und 1 Erwachsenenportion",
          "bild":"\u0000\u0000\u0000\u0000\u0000",
          "vorrat":"2",
          "zubereitungszeit":"45",
          "zubereitung0":null,
          "zubereitung1":null,
          "zubereitung2":null,
          "info":null
     }
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 如何在scanpy上做差异基因和通路富集?
  • ¥20 关于#硬件工程#的问题,请各位专家解答!
  • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
  • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
  • ¥30 截图中的mathematics程序转换成matlab
  • ¥15 动力学代码报错,维度不匹配
  • ¥15 Power query添加列问题
  • ¥50 Kubernetes&Fission&Eleasticsearch
  • ¥15 報錯:Person is not mapped,如何解決?
  • ¥15 c++头文件不能识别CDialog