Yo lo haría asi..

http://ur1.ca/jfaqa

Ignacio Rodríguez
[email protected]
SugarLabs at Facebook
<https://www.facebook.com/pages/SugarLabs/187845102582>

El 13 de enero de 2015, 15:26, Alberto Valverde <[email protected]>
escribió:

> Decodifica el json, añade la nueva llave al diccionario resultante y
> vuelve a codificarlo.
>
> 2015-01-13 18:20 GMT+01:00 Nicolas lino <[email protected]>:
>
>>
>>
>> Hola gente, tengo una duda:
>>
>> Teniendo el siguiente modelo de json
>>
>> {"0":[{"root":"path","movi":"the 
>> movi","uri_subtitle":"http://sarasa"}],"1":[{"root":"path","movi":"the
>> movi","uri_subtitle":"http://sarasa"}]}
>>
>> Como hago para agregar {"2":[{"root":"path","movi":"the
>> movi","uri_subtitle":"http://sarasa"}]}?
>>
>>
>> Estoy usando la libreria json. Tampoco se si es la mejor para esto.
>>
>>
>> Muchas gracias!
>>
>> _______________________________________________
>> Python-es mailing list
>> [email protected]
>> https://mail.python.org/mailman/listinfo/python-es
>> FAQ: http://python-es-faq.wikidot.com/
>>
>>
>
> _______________________________________________
> Python-es mailing list
> [email protected]
> https://mail.python.org/mailman/listinfo/python-es
> FAQ: http://python-es-faq.wikidot.com/
>
>
_______________________________________________
Python-es mailing list
[email protected]
https://mail.python.org/mailman/listinfo/python-es
FAQ: http://python-es-faq.wikidot.com/

Responder a