2 ms·
A JSON object like: { "title" : "Jack and Ada at BCHS", "visitors": { "mozilla": 802 } } Can be written in Tree Notation like this: title Jack and Ad
by sharemywin 9y ago
A JSON object like:
{
"title" : "Jack and Ada at BCHS",
"visitors": {
"mozilla": 802
}
}
Can be written in Tree Notation like this:
title Jack and Ada at BCHS
visitors
mozilla 802
couldn't this be parsed as:
{
"title Jack" : "and Ada at BCHS",
"visitors": {
"mozilla": 802
}
}
- breck 9y agoIt could. TN doesn't have a notion of "words", so ETNs are free to parse each line as they see fit. In my experience, it's best to stick to the convention of words, separated by a single space, and for the first word to be "head". Also works great for the first word to be indicate the node type.