The following query:
import module namespace json = 

let $json := doc("tweet.json")
return json:serialize($json)

Where tweet.json is the result from json:parse() (the file is attached).

json.xq>:196,3: JSON serialization error [zerr:ZJSE0007]: JSON type "object" 
can not have a child text node 
json:serialize#1 <> 

** Attachment added: "tweet.json"

You received this bug notification because you are a member of Zorba
Coders, which is the registrant for Zorba.

  json 2.0 bug: json:serialize(json:parse(VALID_JSON))

Status in Zorba - The XQuery Processor:
  In Progress

Bug description:
  Should be possible to call json:serialize(json:parse(VALID_JSON))
  where VALID_JSON is any valid JSON string
  see added failing test test/rbkt/zorba/json/json-snelson-serialize-parse:

  import module namespace 
  declare variable $json-value := '{"html":"<b>bold</b>"}';

To manage notifications about this bug go to:

Mailing list:
Post to     :
Unsubscribe :
More help   :

Reply via email to