From: SourceForge.net <no...@so...> - 2010-09-11 11:22:30
|
Bugs item #3064218, was opened at 2010-09-11 13:22 Message generated for change (Tracker Item Submitted) made by hungerburg You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=117691&aid=3064218&group_id=17691 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Hungerburg (hungerburg) Assigned to: Nobody/Anonymous (nobody) Summary: xml-to-json quotes numbers Initial Comment: Numbers output from xml-to-json are surrounded by quotes. This may break consumers that expect a numeric value for some variable. Simplified example, where the type of the variable output must be available to the xml-to-json function. also a cast of $count to xs:decimal will not help: let $hits := collection(/some/path//[ft:query(., $query)] let $count := count($hits) let $result := <result> <count>{$count}</count> </result> return json:xml-to-json($result) will write: {"count" : "2" } ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=117691&aid=3064218&group_id=17691 |