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 20 Last Updated: 11 June, 2024