removed validation from to_json
doc fix