Results 1 to 3 of 3

Thread: json reader of complex json data

  1. #1
    Sencha Premium Member
    Join Date
    Jun 2014
    Posts
    11

    Default Answered: json reader of complex json data

    Hi
    I am playing with Kafka rest interface and it generate following json response

    PHP Code:
    [{"topic":"bar","key":null,"value":{"name":"Max","phone":"1234"},"partition":0,"offset":28},{"topic":"bar","key":null,"value":{"name":"Mark","phone":"6765"},"partition":0,"offset":29}] 
    I like to get the value part into to my table

    The table fields is name and phone so my store should contain following records
    name phone
    max 1234
    Mark 6765


    I have not been able to figure out how I shall define my model and store to parse this data

    Any suggestions?



  2. #2
    Sencha Premium User
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    19,258
    Answers
    759

  3. #3
    Sencha Premium Member
    Join Date
    Jun 2014
    Posts
    11

    Default

    Thank you very much

Similar Threads

  1. Sencha Touch 2.x [WARN][Ext.data.reader.Reader#process] JSON object not found
    By akpotosufredrick in forum Sencha Touch 2.x: Q&A
    Replies: 2
    Last Post: 3 Aug 2013, 5:43 AM
  2. Replies: 4
    Last Post: 19 Feb 2012, 11:48 AM
  3. A complex JSON data to map into complex form
    By TheItalianJob in forum Ext 2.x: Help & Discussion
    Replies: 5
    Last Post: 26 Nov 2010, 7:53 AM
  4. How send complex data in JSON
    By vsanchez in forum Ext 2.x: Help & Discussion
    Replies: 2
    Last Post: 3 Jul 2008, 5:04 AM
  5. Complex JSON data with a reader
    By OutpostMM in forum Sencha Ext JS Q&A
    Replies: 0
    Last Post: 16 Apr 2008, 4:39 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •