2024-05-06 10:53:36 +00:00
|
|
|
created: 20240506101435113
|
2024-05-06 15:13:08 +00:00
|
|
|
modified: 20240506140610448
|
2024-05-06 10:53:36 +00:00
|
|
|
tags:
|
2024-05-23 05:24:13 +00:00
|
|
|
title: test-jsonvariables-conat
|
2024-05-06 10:53:36 +00:00
|
|
|
type: text/vnd.tiddlywiki
|
|
|
|
|
|
|
|
''Nice to have''
|
|
|
|
|
|
|
|
<<.example 1 """\function tab() [charcode[9]]
|
|
|
|
|
2024-05-23 05:24:13 +00:00
|
|
|
<pre><$text text={{{[[.concat]jsonvariables[]]}}}/></pre>
|
2024-05-06 10:53:36 +00:00
|
|
|
""">>
|
|
|
|
|
|
|
|
''Human readable version''
|
|
|
|
|
|
|
|
<<.example 2 """\function tab() [charcode[9]]
|
|
|
|
|
2024-05-23 05:24:13 +00:00
|
|
|
<pre><$text text={{{[[.concat]jsonvariables[]format:json<tab>]}}}/></pre>
|
2024-05-06 10:53:36 +00:00
|
|
|
""">>
|
|
|
|
|
|
|
|
''Function definition''
|
|
|
|
|
|
|
|
<<.example 3 """\function tab() [charcode[9]]
|
|
|
|
|
2024-05-23 05:24:13 +00:00
|
|
|
<pre><$text text={{{[[.concat]jsonvariables[]jsonextract[srcVariable],[value]format:json<tab>]}}}/></pre>
|
2024-05-06 10:53:36 +00:00
|
|
|
""">>
|
|
|
|
|
|
|
|
''Get parameters''
|
|
|
|
|
|
|
|
<<.example 4 """\function tab() [charcode[9]]
|
|
|
|
|
2024-05-23 05:24:13 +00:00
|
|
|
<pre><$text text={{{[[.concat]jsonvariables[]jsonextract[srcVariable],[params]format:json<tab>]}}}/></pre>
|
2024-05-06 10:53:36 +00:00
|
|
|
""">>
|
|
|
|
|
|
|
|
''Expected''
|
|
|
|
|
|
|
|
<<.example 5 """\function tab() [charcode[9]]
|
|
|
|
|
|
|
|
<pre><$text text={{{[[.concat]format:variable[]]}}}/></pre>
|
|
|
|
""">>
|