Well i did't have time to make  and test new code, so json stayed. 

I could use kwargs though.