init source tree with json string