Results 1 to 3 of 3

Thread: Nested data in a json

  1. #1

    Default Nested data in a json

    Well, I have a question, how can i obtain a register from a nested json, this is my json object:

    Code:
    {"ewr":
    	{"archivedate":"2012/04/04 00:00:00 CDT",
    	 "closedate":"2012/04/04 00:00:00 CDT",
    	 "completedate":"2012/04/04 00:00:00 CDT",
    	 "creationdate":"2012/01/30 00:00:00 CST",
             "customerid":
    		{"cnumber":"10000006",
    		 "customerid":"3",
    		 "name":"Delphi-T"
    		},
    	 "ewrid":"37",
    	 "ewrphaseid":
    		{"ewrphaseid":"4",
    		 "ewrtypeid":
    			{"divisionid":
    				{"description":"Electronics&Safety",
    				  "divisionid":"1",
    				  "name":"E&S"
    				 },
    			 "ewrtypeid":"1",
    			 "name":"Validation"
    			},
    		 "name":"Continuous Compliance Testing (CCT)"
    		 },
    	"ewrstatusid":
    		{"ewrstatusid":"3",
    		 "name":"archived"
    		},
    	"modelyear":"2014/01/01 00:00:00 CST",
    	"partsarrivaldate":"2012/04/04 00:00:00 CDT",
    	"projectid":
    		{"description":"NA",
    		 "name":"12005796 2011 Hyundai MDA FDM",
    		 "pnumber":"12005796",
    		 "projectid":"9",
    		 "wo":"NA"
    		},
    	"siteid":
    		{"acronym":"JP",
    		 "divisionid":
    			{"description":"PowerTrain",
    			 "divisionid":"2",
    			 "name":"PT"
    			},
    		 "physicalsiteid":
    			{"acronym":"MTC",
    			 "name":"Mexico Technical Center",
    			 "physicalsiteid":"7"
    			},
    		"siteid":"6"
    		},
    	"userid":
    		{"active":"true",
    		 "mail":"[email protected]",
    		 "name":"Arellano, Abel I",
    		 "siteid":
    			{"acronym":"PT",
    			 "divisionid":
    				{"description":"PowerTrain",
    				 "divisionid":"2","name":"PT"
    				},
    			 "physicalsiteid":
    				{"acronym":"KTC",
    				 "name":"Kokomo Technical Center",
    				 "physicalsiteid":"2"
    				},
    			 "siteid":"4"
    			},
    		 "supervisor":"nz0zx4",
    		 "userid":"zz9pzp"
    		},
    	"validationlevel":"1"
    	}
    }
    for example, in "customerid" i need to recover the name to put in a datagrid.

    Thanks!!!

  2. #2
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    9,410

    Default

    You can drill down as needed. Please see the following example:
    http://www.sencha.com/forum/showthread.php?219981

    Scott.

  3. #3

    Default

    Thanks Scott,

    After post my thread i saw the example, and it really helps a lot.

    Regards.

    Jovani

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
  •