Json stuff

Adding json stuff but not compete