File tree Expand file tree Collapse file tree 2 files changed +15
-0
lines changed
Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -213,6 +213,11 @@ tags:
213213 - tag-from-file-properties
214214creation date: 2024-05-25T15:17:00
215215project: Secret Project
216+ nested_data:
217+ surname: "Doe"
218+ firstname: "Jane"
219+ middle name: "Frances"
220+ object_serialization: {"nested1": "value1", "nested2": "value2"}
216221---
217222` ` `
218223<!-- endSnippet -->
@@ -235,6 +240,11 @@ The following table shows how most of those properties are interpreted in Tasks
235240| ` task.file.property('sample_link_property')` | ` string` | ` '[[yaml_all_property_types_populated]]'` |
236241| ` task.file.property('sample_link_list_property')` | ` string[]` | ` ['[[yaml_all_property_types_populated]]', '[[yaml_all_property_types_empty]]']` |
237242| ` task.file.property('tags')` | ` string[]` | ` ['#tag-from-file-properties']` |
243+ | ` task.file.property('nested_data').surname` | ` string` | ` 'Doe'` |
244+ | ` task.file.property('nested_data').firstname` | ` string` | ` 'Jane'` |
245+ | ` task.file.property('nested_data')['middle name']` | ` string` | ` 'Frances'` |
246+ | ` task.file.property('object_serialization').nested1` | ` string` | ` 'value1'` |
247+ | ` task.file.property('object_serialization').nested2` | ` string` | ` 'value2'` |
238248
239249<!-- placeholder to force blank line after included text --><!-- endInclude -->
240250
Original file line number Diff line number Diff line change @@ -229,6 +229,11 @@ These are described in full in [[Obsidian Properties]].
229229| ` task.file.property('sample_link_property') ` | ` string ` | ` '[[yaml_all_property_types_populated]]' ` |
230230| ` task.file.property('sample_link_list_property') ` | ` string[] ` | ` ['[[yaml_all_property_types_populated]]', '[[yaml_all_property_types_empty]]'] ` |
231231| ` task.file.property('tags') ` | ` string[] ` | ` ['#tag-from-file-properties'] ` |
232+ | ` task.file.property('nested_data').surname ` | ` string ` | ` 'Doe' ` |
233+ | ` task.file.property('nested_data').firstname ` | ` string ` | ` 'Jane' ` |
234+ | ` task.file.property('nested_data')['middle name'] ` | ` string ` | ` 'Frances' ` |
235+ | ` task.file.property('object_serialization').nested1 ` | ` string ` | ` 'value1' ` |
236+ | ` task.file.property('object_serialization').nested2 ` | ` string ` | ` 'value2' ` |
232237
233238<!-- placeholder to force blank line after included text --> <!-- endInclude -->
234239
You can’t perform that action at this time.
0 commit comments