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.pull/402/head
parent
5a7f12a9c1
commit
d9602e8325
@ -1,7 +1,7 @@
|
||||
{
|
||||
"edges" : "#[edges]#",
|
||||
"maxdepth" : "#[maxdepth]#",
|
||||
"graph" : [#{edges}#
|
||||
{"source":"#[source]#", "target":"#[target]#", "type":"#[type]#", "depthSource":"#[depthSource]#", "depthTarget":"#[depthTarget]#"}#(eol)#::,#(/eol)#
|
||||
"graph" : [#{edges|,}#
|
||||
{"source":"#[source]#", "target":"#[target]#", "type":"#[type]#", "depthSource":"#[depthSource]#", "depthTarget":"#[depthTarget]#"}
|
||||
#{/edges}#]
|
||||
}
|
Loading…
Reference in new issue