EasyUI Forum
April 28, 2024, 03:46:23 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Poll
Question: How can i send the key value  in json
Alternative way to add the key - 0 (0%)
how can i send the key value - 0 (0%)
Total Voters: 0

Pages: [1]
  Print  
Author Topic: Jquery json building  (Read 5844 times)
sunny
Newbie
*
Posts: 1


View Profile Email
« on: March 10, 2015, 02:45:36 AM »

http://jsfiddle.net/hot0Lg5v/  in my fiddle there is a json how can i send the key value
This is drag and drop model when you drag json is created open the console and see the json i want to send the key

that's json when you drop two modules

{"children":[{"data":{"id":"213","timeout":"20","can_call_self":false},"key":"","module":"device","children":[{"data":{"id":123,"timeout":12,"can_call_self":false},"key":"","module":"user","children":[]}]}]}
this is  i want

{"children":[{"data":{"id":"213","timeout":"20","can_call_self":false},"key":"_","module":"device","children":[{"data":{"id":123,"timeout":12,"can_call_self":false},"key":"1","module":"user","children":[]}]}]}
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!