mbleron / jsonutilities Goto Github PK
View Code? Open in Web Editor NEWA collection of Oracle utilities for JSON data
A collection of Oracle utilities for JSON data
Not sure if this project is still active but just found it and trying to use it against some XML that I'm pulling into my database as an XMLTYPE.
Getting this error when trying to query against the XMLTYPE column.
ORA-20100: FOJS0006: Invalid XML representation of JSON
ORA-20101: Invalid element 'data' in namespace ''
ORA-06512: at "SERVICENOW.XUTL_JSON", line 30
ORA-06512: at "SERVICENOW.XUTL_JSON", line 247
ORA-06512: at "SERVICENOW.XUTL_JSON", line 30
ORA-06512: at "SERVICENOW.XUTL_JSON", line 296
Here's my SQL statement:
select xutl_json.xml_to_json(response_xml) from sp_api_log
where request_type = 'room data' and request_url like '%service/rooms/00036';
Here is a fragment of the XML. Wondering if you have any thoughts about why this is failing.
<?xml version="1.0" encoding="UTF-8"?>
<data title="Room Data (Selected Building)" publisher="Space Planning & Management" creator="https://www.space.utah.edu/service/rooms/00036" date="2021-03-17T10:04:21-0600" description="Limited result set.">
<row>
<location_code>0036000010</location_code>
<building_number>36</building_number>
<building_name>Film and Media Arts Building</building_name>
<owning_organization_id>00296</owning_organization_id>
<owning_organization_name>Registrar's Office</owning_organization_name>
<using_organization_id>00296</using_organization_id>
<using_organization_name>Registrar's Office</using_organization_name>
<use_name>Classroom</use_name>
<prorated_area>3930.0</prorated_area>
<floor_number>0</floor_number>
<room_number>1</room_number>
<area>3930.0</area>
<using_organization_proration>100</using_organization_proration>
<use_code>110</use_code>
<use_proration>100</use_proration>
</row>
<row>
<location_code>003600001A</location_code>
<building_number>36</building_number>
<building_name>Film and Media Arts Building</building_name>
<owning_organization_id>00296</owning_organization_id>
<owning_organization_name>Registrar's Office</owning_organization_name>
<using_organization_id>00296</using_organization_id>
<using_organization_name>Registrar's Office</using_organization_name>
<use_name>Classroom Serv</use_name>
<prorated_area>96.0</prorated_area>
<floor_number>0</floor_number>
<room_number>1A</room_number>
<area>96.0</area>
<using_organization_proration>100</using_organization_proration>
<use_code>115</use_code>
<use_proration>100</use_proration>
</row>
<row>
<location_code>003600001B</location_code>
<building_number>36</building_number>
<building_name>Film and Media Arts Building</building_name>
<owning_organization_id>00296</owning_organization_id>
<owning_organization_name>Registrar's Office</owning_organization_name>
<using_organization_id>00296</using_organization_id>
<using_organization_name>Registrar's Office</using_organization_name>
<use_name>Classroom Serv</use_name>
<prorated_area>104.0</prorated_area>
<floor_number>0</floor_number>
<room_number>1B</room_number>
<area>104.0</area>
<using_organization_proration>100</using_organization_proration>
<use_code>115</use_code>
<use_proration>100</use_proration>
</row>
<row>
<location_code>003600001C</location_code>
<building_number>36</building_number>
<building_name>Film and Media Arts Building</building_name>
<owning_organization_id>00296</owning_organization_id>
<owning_organization_name>Registrar's Office</owning_organization_name>
<using_organization_id>00296</using_organization_id>
<using_organization_name>Registrar's Office</using_organization_name>
<use_name>Classroom Serv</use_name>
<prorated_area>55.0</prorated_area>
<floor_number>0</floor_number>
<room_number>1C</room_number>
<area>55.0</area>
<using_organization_proration>100</using_organization_proration>
<use_code>115</use_code>
<use_proration>100</use_proration>
</row>
<row>
<location_code>0036000020</location_code>
<building_number>36</building_number>
<building_name>Film and Media Arts Building</building_name>
<owning_organization_id>00071</owning_organization_id>
<owning_organization_name>College Of Fine Arts</owning_organization_name>
<using_organization_id>00071</using_organization_id>
<using_organization_name>College Of Fine Arts</using_organization_name>
<use_name>Office</use_name>
<prorated_area>123.0</prorated_area>
<floor_number>0</floor_number>
<room_number>2</room_number>
<area>123.0</area>
<using_organization_proration>100</using_organization_proration>
<use_code>310</use_code>
<use_proration>100</use_proration>
</row>
<row>
<location_code>003600002A</location_code>
<building_number>36</building_number>
<building_name>Film and Media Arts Building</building_name>
<owning_organization_id>00071</owning_organization_id>
<owning_organization_name>College Of Fine Arts</owning_organization_name>
<using_organization_id>00071</using_organization_id>
<using_organization_name>College Of Fine Arts</using_organization_name>
<use_name>Office Service</use_name>
<prorated_area>81.0</prorated_area>
<floor_number>0</floor_number>
<room_number>2A</room_number>
<area>81.0</area>
<using_organization_proration>100</using_organization_proration>
<use_code>315</use_code>
<use_proration>100</use_proration>
</row>
<row>
<location_code>003600002B</location_code>
<building_number>36</building_number>
<building_name>Film and Media Arts Building</building_name>
<owning_organization_id>00071</owning_organization_id>
<owning_organization_name>College Of Fine Arts</owning_organization_name>
<using_organization_id>00071</using_organization_id>
<using_organization_name>College Of Fine Arts</using_organization_name>
<use_name>Office Service</use_name>
<prorated_area>7.0</prorated_area>
<floor_number>0</floor_number>
<room_number>2B</room_number>
<area>7.0</area>
<using_organization_proration>100</using_organization_proration>
<use_code>315</use_code>
<use_proration>100</use_proration>
</row>
<row>
<location_code>0036000050</location_code>
<building_number>36</building_number>
<building_name>Film and Media Arts Building</building_name>
<owning_organization_id>00080</owning_organization_id>
<owning_organization_name>Film & Media Arts</owning_organization_name>
<using_organization_id>00080</using_organization_id>
<using_organization_name>Film & Media Arts</using_organization_name>
<use_name>Class Lab</use_name>
<prorated_area>1146.0</prorated_area>
<floor_number>0</floor_number>
<room_number>5</room_number>
<area>1146.0</area>
<using_organization_proration>100</using_organization_proration>
<use_code>210</use_code>
<use_proration>100</use_proration>
</row>
</data>
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.