json working for background.py