Solon v3.6.0

snack - Helloworld

</> markdown

1、添加依赖

<dependency>
  <groupId>org.noear</groupId>
  <artifactId>snack4</artifactId>
  <version>4.0.0-M2</version>
</dependency>

2、编写代码

public class DemoApp {
    public static void main(String[] args) {
        ONode oNode = ONode.ofJson("{'hello':'world'}");
        System.out.println(oNode.toJson());
    }
}

3、运行效果