0

I tried to use the following function in an XQuery in eXide from eXist-db:

 let $x := parse-json(substring-before(substring-after($body,'('),');'))

but it gives me the following error:

err:XPST0017 Function parse-json() is not defined in module namespace: http://www.w3.org/2005/xpath-functions

Joe Wicentowski
  • 5,159
  • 16
  • 26
props
  • 105
  • 1
  • 7
  • Which version of eXist? `fn:parse-json()` was added to eXist 3.x, so if you're using 2.x you'd need to upgrade in order to call this function. – Joe Wicentowski Jun 07 '17 at 15:58
  • @joewiz i am using the newest version, 3.2.0 i think – props Jun 07 '17 at 16:20
  • I'm unable to reproduce your results with eXist 3.2.0. This query works for me without error: `xquery version "3.1"; parse-json('{"hello": "world"}')` – Joe Wicentowski Jun 07 '17 at 20:28

0 Answers0