Relative Content

Tag Archive for pythonjson

JSON file doesn’t exist

I was coding a Sora Ai Alternative when I ran it, FileNotFoundError Thing called No such File or directory “[PRIVATED]_video_config.json” so I wrote the comment “this file directory does exist it’s next to a “[PRIVATE].py”, it doesn’t work!

Traverse JSON Object

I am attemping to traverse a JSON object where I am trying to build a simple rule:

how to convert normal string to json format in python

i have normal string it come without quote for columns name and when i try to loaded as json it give error because there are no quotes for the columns inside the string , is there are a way in python i can add the double quotes to columns name inside string so i can get valid json formate ?