Inserting JSON into MySQL using Python

前端 未结 9 887
我在风中等你
我在风中等你 2020-12-08 03:50

I have a JSON object in Python. I am Using Python DB-API and SimpleJson. I am trying to insert the json into a MySQL table.

At moment am getting errors and I believ

9条回答
  •  一整个雨季
    2020-12-08 03:57

    use json.dumps(json_value) to convert your json object(python object) in a json string that you can insert in a text field in mysql

    http://docs.python.org/library/json.html

提交回复
热议问题