Addpopjson and getpopdict