User Tools

Site Tools


playground:playground

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
playground:playground [2023/05/15 23:43] – created - external edit 127.0.0.1playground:playground [2024/03/11 09:22] (current) admin
Line 1: Line 1:
 ====== PlayGround ====== ====== PlayGround ======
 +
 +
 +===== Schema definition =====
 +<json id=sch path=schema>{
 +  "title": "Persons",
 +  "type": "array",
 +  "items": {
 +    "type": "object",
 +    "properties": {
 +      "name": {"type": "string"},
 +      "age": {"type": "number"}
 +    },
 +    "required": ["name", "age"]
 +  }
 +}</json>
 +
 +
 +===== Options for JSON editor =====
 +<json id=opt path=options>{
 +}</json>
 +
 +
 +===== JSON Editor =====
 +
 +<jsoneditor id=per_diff path=persons display=all options=%$options% schema=%$schema% save=diff>[
 +  {"name":"Tony Stark","age":13},
 +  {"name":"Jeremy Dorn","age":25},
 +  {"name":"Wayne","age":19}
 +]</jsoneditor>
 +
 +===== People list =====
 +
 +%$persons[]{}%
  
playground/playground.1684186992.txt.gz · Last modified: 2023/05/15 23:43 by 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki