Lines Matching refs:JSON
1 ====== JSON Data Plugin ======
4 description: Build JSON database inside DokuWiki page and use the data in the page
28 * [[plugin:jsoneditor|JSON editor plugin]]
29 * [[plugin:jsontable|JSON table plugin]]
30 * [[plugin:jsongendoc|JSON generate document plugin]]
35 With JSON Data Plugin you can build [[https://www.json.org/|JSON]] database inside DokuWiki page. J…
37 To add JSON database into the wiki page write:
54 JSON data can be used in the following ways:
55 * Extract specific JSON **basic** element.
56 * Extract specific JSON object element as a **list**.
57 * Extract specific JSON array element as a **table**.
58 * Print specific part of data as JSON code.
59 * Show or hide sections of DokuWiki page, based on value of specific JSON element.
61 * JSON data can also be edited and safely stored back into the dokuwiki page via ajax call.
66 …uty.si/|DokuWiki JSON Demo Server]] with JSON database integrated into DokuWiki. Also source code …
74 ===== JSON Data Definition Syntax =====
76 Each page must define it's JSON data. Data are inline or are loaded from external (text) files on e…
83 ==== Inline JSON ====
85 Valid [[https://www.json.org/|JSON]] data can be located between %%<json ...>%% and %%</json>%% tag…
90 …ccess this json element from somewhere else or if we want to write inline JSON data via ajax call.…
116 src='{"JSON": "data", "can clone": %$pre-defined.data%}'
119 External data may be a pure JSON file, it begins with ''['' or ''{''.
127 …JSON data. This way some already defined data from page can be "cloned" and reused. Similar as in …
174 … tabs menu will be hidden. For example 'display=combined*' will only show JSON data without the ta…
181 … to make archive of the JSON database loaded by 'src' or 'src_ext' attribute. Archive is stored in…
183 …as 'archive' attribute equal to 'make' or 'disable', then button 'Archive JSON database' appears o…
189 …lements contains JSON database. Data is then read from 'archive' attribute. 'src' and 'scr_ext' at…
192 ===== JSON Data Usage Syntax =====
194 Basic pattern for render JSON data in dokuwiki is: ''%%%$ ... %%%''. JSON data can be displayed in …
246 | **Print JSON data** | ''%%%$path.to.var #code#%%%'' | Print JSON raw data. |
259 ===== Data snippets inside inline JSON =====
266 …er )]( filter )%%%'' syntax, which will be replaced by data from existing JSON database. ''[( row_…
311 JSON define ''%%<json ...> ... </json>%%'' or extract ''%%%$ ... %%%'' patterns can be quite verbos…
313 …e ''%%#@macro_name@#%%'' patterns inside json define or extract patterns. JSON define or extract p…
318 ===== Use JavaScript widgets with JSON data =====
320 JSON plugin has interface for other sub-plugins, which can use JSON data inside JavaScript widgets …
323 ===== Remote access to JSON data =====
333 ^ Description | Generate JSON database on page and return data from the JSON_path. |
335 ^ Parameter (string) JSON_path | Path on the JSON database, see [[#attribute_path]]. Optional param…
336 ^ Parameter (boolean) addLog | If true, additional information about JSON generation will be return…
346 …) data | Data to be put inside json element. Must be an array, empty string or valid JSON string. |
354 …=...'' element inside page and append data to its inline database. Inline JSON data must be an arr…
356 …attribute_id]]. If empty, complete page will be treated as JSON database (page must be a JSON arra…
357 ^ Parameter (array%%|%%string) data | JSON Data to be appended inside json element. Must be an arra…