Append to a json file python

How to append to a json file python - the quick way

import json

your_dictionary = {'a_new_key': 'a_new_value'}

with open('a_json.json') as a_file:
    data = json.load(a_file)


with open('a_json.json', 'w') as f:
    json.dump(data, f)



  1. Hey what a brilliant post I have come across and believe me I have been searching out for this similar kind of post for past a week and hardly came across this. Thank you very much and will look for more postings from you
    artificial intelligence course in hyderabad

  2. After a long time, I read a very beautiful and very important article that I enjoyed reading. I have found that this article has many important points, I sincerely thank the admin of this website for sharing it. Best python list sort service provider.

  3. I generally check this kind of article and I found your article which is related to my interest. Genuinely it is good and instructive information. Thankful to you for sharing an article like this. it company in indore

  4. It’s great to come across a blog every once in a while that isn’t the same out of date rehashed material. Fantastic read. Best Network Practice Questions service provider.

  5. Play online casino games for fun at Kadang
    Kadang Pintar is 메리트 카지노 고객센터 the premier gaming 인카지노 destination in East Anglian. It offers live dealer kadangpintar games, online gaming and casino gaming options to many

  6. Thanks for sharing this article here about the church book publishing services. Your article is very informative and I will share it with my other friends as the information is really very useful. Keep sharing your excellent work.

    ecommerce catalogue management services

    ecommerce services provider in india

  7. This is really a good source of information, I will often follow it to know more information and expand my knowledge, I think everyone should know it, thanks. Best Network Practice Questions service provider.


Post a Comment

Popular posts from this blog

Setup Mailhog mail server on Ubuntu