Updates for json

and fixed a typo