using simplejson.dumps to encode a dictionary to json

Aaron aaron.jerling at gmail.com
Tue Mar 15 15:58:44 EDT 2011


I'm attempting to write an xml as a json object. the xml object is

        authreq_data = """
        <req> 
            <body> 
                <username>%s</username> 
                <productType>CFD_Demo</productType> 
                <password>%s</password> 
           </body> 
        </req>""" %(username, password)



More information about the Python-list mailing list