mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-08-23 10:06:44 +00:00
18 lines
659 B
Plaintext
18 lines
659 B
Plaintext
created: 20150221152226000
|
|
modified: 20200204135513721
|
|
tags: Macros [[Core Macros]]
|
|
title: jsontiddlers Macro
|
|
type: text/vnd.tiddlywiki
|
|
caption: jsontiddlers
|
|
|
|
The <<.def jsontiddlers>> [[macro|Macros]] returns the fields of a [[selection of tiddlers|Title Selection]] in [[JSON|JavaScript Object Notation]] form.
|
|
|
|
An example can be seen in the [[template tiddler for JSON exports|$:/core/templates/exporters/JsonFile]].
|
|
|
|
!! Parameters
|
|
|
|
;filter
|
|
: A [[filter|Filters]] selecting which tiddlers to include
|
|
;spaces
|
|
: An optional number of spaces to use for formatting the JSON. Defaults to 4, with blank or zero resulting in packed JSON with no formatting spaces
|