Answers for "how to write a json to a file in python"

12

python json save to file

with open('output.json', 'w') as outfile:
    json.dump(data, outfile)
Posted by: Guest on January-18-2021
0

create json file in python\

def check_splcharacter(test):
    # Make own character set and pass 
    # this as argument in compile method
 
    string_check= re.compile('[@_!#$%^&*()<>?/\|}{~:]')
 
    # Pass the string in search 
    # method of regex object.
 
    if(string_check.search(test) == None):
        print("String does not contain Special Characters.") 
    else: 
        print("String contains Special Characters.")
Posted by: Guest on June-10-2021

Code answers related to "how to write a json to a file in python"

Code answers related to "Javascript"

Browse Popular Code Answers by Language