The Altair Community is migrating to a new platform to provide a better experience for you. The RapidMiner Community will merge with the Altair Community at the same time. In preparation for the migration, both communities are on read-only mode from July 15th - July 24th, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here.

How Do I Connect Get Page JSON to XML operator to Read XML Operator

apmishraapmishra Member Posts: 3 Contributor I
edited June 2019 in Help
Hello  ,
I seem to have a fairly simple problem that I can't seem to get around ..

I am reading a JSON feed from a remote URL using the "Get Page" operator. I needed to convert this to an example set so I can score the output. The path that seemed obvious to me was to take this JSON output and convert it to XML then transform it into an example set using the Read XML Operator.
I found that to do connect the Read XML operator to the output of JSON to XML is not possible. I even tried Documents to Data and that documents with text attribute (which is my entire document) that did not work.

I can convert the output to a file and write it though this may not work for many requests. Should I be writing the document to the database instead .. I basically want to score the output "in situ" vs storing it in files ..

So how do I process URL's which produce XML or JSON within RapidMiner and RapidAnalytics..

Eagerly looking forward to your assistance


  • Options
    apmishraapmishra Member Posts: 3 Contributor I
    Found the Solution with Open File Operator. Basically I abandoned the Document approach and wen with reading URL's with Open File Operator which is then read by other Operators to generate the example set (Read CSV, READ XML etc).

    Though it will be good to know how to convert a "doc" into an example set.
  • Options
    DeZepTupDeZepTup Member Posts: 1 Contributor I
    Get page => JSON to XML seems to work fine in 5.2. Open File produces "File", not "Doc", so JSON to XML don't like it and throwing error.
    Could you, please, show, how you converted JSON to Excel?
    My data example:

    Also, converting even 5.6mb of data if "eating" 1.8GB RAM and sometimes freezing RM, this is pretty weird - it is not a big amount of data, 51 000 rows, 7 columns.
    What was your utilization while processing JSON?

    Best regards.
Sign In or Register to comment.