Support in-content JSON?
I guess YALM is a kind of JSON, except that it doesn’t fully support links (you can use the format key: "[[link]]", but I heard that there is a case that you cannot put links in there. Unfortunately I don’t fully remember the details). In my understanding JSON has more flexibility than YAML? So I just wonder why can’t we use JSON in the middle of the content, like LaTeX or mermaid?
Case 1: list of links
text text:: value
subcategory: {[
[[link 1]],
[[link 2]]
]}
-
I don’t want to put this in the frontmatter, because it’s more natural to have read this list at the bottom. Plus that links aren’t fully supported in there
-
If I use the Dataview inline, i.e. subcategory:: [[link 1]] [[link 2]], then it will be cluttered if there are many items and the links are long (alias won’t help)
-
If I use tasks instead, i.e.
- [ ] [[link 1]]
- [ ] [[link 2]]
then I can only query them with file.tasks, not with the actual key I want. The checkbox also gives me false impression.
-
If I separate the list in multiple lines, i.e.
subcategory:: [[link 1]]
subcategory:: [[link 2]]
then the connotation that link 1 and link 2 are relevant will be lost. They are two arrays of one element, not one array of two elements.
Case 2: declare metadata for non-existing files
[[link 1]] : {
key 1: "value 1",
key 2: "value 2"
}
While link 1 hasn’t created yet. This is extremely useful if you are working with graph database. See the Link Types - Juggl