How Do I code this in python with simplejson

Posted by Spikie on Stack Overflow See other posts from Stack Overflow or by Spikie
Published on 2010-03-31T14:53:39Z Indexed on 2010/03/31 15:03 UTC
Read the original article Hit count: 461

Filed under:
|

how do i code a python program that return a json element that look like this

{1:{'name':foo,'age':xl}
  2:{'name':vee,'age':xx}
  ....
}

What i meant is that i want return nested dictionaries

What i hoped to accomplish is something like this

var foo = 1.name  # to the the value of name in the clientside

I hope all this made sense .English is my second language

thanks in advance

© Stack Overflow or respective owner

Related posts about python

Related posts about JSON