pretty print json

This commit is contained in:
wil committed 2024-03-07 10:40:35 -05:00
1 parent 343622c880
commit 587d4dbef9
1 file changed
+1 -1
@@ -23,7 +23,7 @@ export const CompAdminPanel = ({
dispatchPageState: (action: Action) => void;
})=>{
const history = useHistory();
const exampleJSON = JSON.stringify(mapRequest(vstValues));
const exampleJSON = JSON.stringify(mapRequest(vstValues), null, 4);
const [jsonRequest, setJsonRequest] = useState<string>(exampleJSON);
const handleSendRequest = ()=>{
EnqueueVideoStyleTransfer(JSON.parse(jsonRequest)).then(res => {