Load Stage with JSON String

To deserialize a JSON string with Konva, we can use the Konva.Node.create()
method which creates a node from a JSON string. If we want to deserialize
a stage node, we can also pass in an optional container parameter.

That methods works for very small apps. For more complex cases take a look into Complex Load or even better to Best Practices

Konva Simple Load Demoview raw
<!DOCTYPE html>
<script src="https://unpkg.com/[email protected]/konva.min.js"></script>
<meta charset="utf-8" />
<title>Konva Simple Load Demo</title>
body {
margin: 0;
padding: 0;
overflow: hidden;
background-color: #f0f0f0;
<div id="container"></div>
var json =

// create node using json string
var stage = Konva.Node.create(json, 'container');
Enjoying Konva? Please consider to support the project.