yacy_search_server/htroot/api/linkstructure.json
Michael Peter Christen d9602e8325 Implemented a new syntax in the template engine to simplify json APIs
Added also an example for one of the existing APIs. The problem is the
comma separator between objects which must not be there for the last
entry in a sequence. The new syntax adds the separator symbol
automatically.
2021-01-18 00:01:08 +01:00

7 lines
222 B
JSON

{
"edges" : "#[edges]#",
"maxdepth" : "#[maxdepth]#",
"graph" : [#{edges|,}#
{"source":"#[source]#", "target":"#[target]#", "type":"#[type]#", "depthSource":"#[depthSource]#", "depthTarget":"#[depthTarget]#"}
#{/edges}#]
}