API Reference > frontend-devTools > Tools > serializeViewState serializeViewState Function Beta Serialize a ViewState to JSON. The returned JSON can later be passed to [deserializeViewState] to reinstantiate the ViewState. serializeViewState(view: ViewState): ViewStateProps Parameter Type Description view ViewState Returns - ViewStateProps Defined in frontend-devtools/src/tools/SavedViews.ts Line 42 Last Updated: 13 June, 2024