docs: JSON protocol documentation.