If the list of items has only one entry, then the JSON produced will not have square brackets () and you must do some special handling.
如果条目列表中只有一项,那么生成的JSON将没有方括号(),而您必须对其做一些特殊处理。
Note the brackets (not parentheses), which are required to compose an anonymous list reference.
注意方括号(不是圆括号)中需要组成一个匿名列表引用。
However, a slash or a double slash ( / or // ) at the front of a predicate in square brackets does not have a context and therefore refers to the root of the document.
但是,方括号中谓词前的单斜线或双斜线(/ 或 //)没有上下文,所以引用到文档的根。
I did not want to make a list, I wanted to create a tuple thank you for catching it. I want parens not square brackets there.
为什么这里有错误了,我并不想要创建,一个列表,我想创建一个元组,谢谢你,发现了这个错误。
So if we want to put that in chemical terms, we want to make sure we put these in brackets here, and remember, this is the resonance arrow, it's not a reaction arrow, it's a resonance arrow, so make sure you mark it up correctly like that.
那么如果我们把它类比到化学中来,我们要确保它们都放在括号里,而且要记住,这是一个表示共振态的箭头,而不是表示化学反应的,它是一个表示共振态的箭头,因此请务必像这样正确地标记它。
应用推荐