Update readme

Also accepts JSON input