Project

Profile

Help

Bug #6539

closed

PySaxonProcessor.parse_json does not create a PyXdmMap

Added by O'Neil Delpratt 3 months ago. Updated 12 days ago.

Status:
Resolved
Priority:
Normal
Category:
-
Start date:
2024-09-18
Due date:
% Done:

100%

Estimated time:
Applies to branch:
12, trunk
Fix Committed on Branch:
12, trunk
Fixed in Maintenance Release:
Found in version:
12.5
Fixed in version:
SaxonC Languages:
Python
SaxonC Platforms:
All, Linux, Windows, macOS
SaxonC Architecture:

Description

The following example fails in producing the correct subtype when parsing JSON on the PySaxonProcessor:

json1 = """{ "test" : "This is a test. Price is higher than 25 €. " }"""

parsed_json1 = proc.parse_json(json_text=json1)
print(type(parsed_json1.head))

I tried to get the map or function but both fails.

Please register to edit this issue

Also available in: Atom PDF