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 <nicolasli...@gmail.com>: > > > 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 > Python-es@python.org > https://mail.python.org/mailman/listinfo/python-es > FAQ: http://python-es-faq.wikidot.com/ > >
_______________________________________________ Python-es mailing list Python-es@python.org https://mail.python.org/mailman/listinfo/python-es FAQ: http://python-es-faq.wikidot.com/