mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-13 21:34:51 +00:00
18 lines
703 B
Plaintext
18 lines
703 B
Plaintext
caption: jsontiddlers
|
|
created: 20150221152226000
|
|
modified: 20220427171155184
|
|
tags: Macros [[Core Macros]]
|
|
title: jsontiddlers Macro
|
|
type: text/vnd.tiddlywiki
|
|
|
|
The <<.def jsontiddlers>> [[macro|Macros]] returns the fields of a [[selection of tiddlers|Title Selection]] in [[JSON|JavaScript Object Notation]] form. See [[JSON in TiddlyWiki]] for an overview.
|
|
|
|
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
|