import json
      
      json_content = {"key1": value1,"key2": value2}
      json_dump = json.dumps(json_content)
      Python language logo

      Data to JSON string

      json
      Python public recipes

      Encode Python data structure to Json

      Example

      json_content = {"key1": value1,"key2": value2}
      json_dump = json.dumps(json_content)
      

      Shortcut: json.dumps

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.