State.ToString implemented with JSON.net