Adding usage to json()

I've also stripped out "json set to" as it wasn't implemented and I'm not sure what the API was supposed to be.