You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think the Query Chaining doc page has an error in the example. Specifically:
scala> val ref1 = data get "item" get "refs" get "ref" get 1
ref1: Option[morph.ast.ValueNode] =
Some({
"@source": "CERT",
"#text": "CA-98.12.mountd"
})
The returned element shown is the first element in the ref array, but since it states that the "get" function is zero based, I would think the second element in the array would be returned:
I think the Query Chaining doc page has an error in the example. Specifically:
scala> val ref1 = data get "item" get "refs" get "ref" get 1
ref1: Option[morph.ast.ValueNode] =
Some({
"@source": "CERT",
"#text": "CA-98.12.mountd"
})
The returned element shown is the first element in the ref array, but since it states that the "get" function is zero based, I would think the second element in the array would be returned:
{
"@source": "CIAC",
"@url": "www.ciac.org/...",
"#text": "J-006"
},
The text was updated successfully, but these errors were encountered: