<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Is it possible to save the journal or report file as a json file, or export it as a dictionary? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Is-it-possible-to-save-the-journal-or-report-file-as-a-json-file/m-p/656104#M84520</link>
    <description>&lt;P&gt;Thank you very much. This is something that I can work with. Glad to know the report can be saved in HTML report. As you mentioned, I am planning to use BeautifulSoup for parsing.&lt;/P&gt;</description>
    <pubDate>Thu, 06 Jul 2023 17:34:42 GMT</pubDate>
    <dc:creator>Kenobi</dc:creator>
    <dc:date>2023-07-06T17:34:42Z</dc:date>
    <item>
      <title>Is it possible to save the journal or report file as a json file, or export it as a dictionary?</title>
      <link>https://community.jmp.com/t5/Discussions/Is-it-possible-to-save-the-journal-or-report-file-as-a-json-file/m-p/655684#M84470</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I plan on using the some of the images, titles, tables from a journal, and use them in order to create a word document using external programming language like Python. I was wondering if JMP has a feature to export the journal as a json file, where each object is saved in a key value format.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jul 2023 19:13:11 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Is-it-possible-to-save-the-journal-or-report-file-as-a-json-file/m-p/655684#M84470</guid>
      <dc:creator>Kenobi</dc:creator>
      <dc:date>2023-07-05T19:13:11Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to save the journal or report file as a json file, or export it as a dictionary?</title>
      <link>https://community.jmp.com/t5/Discussions/Is-it-possible-to-save-the-journal-or-report-file-as-a-json-file/m-p/655761#M84475</link>
      <description>&lt;P&gt;You can save XML like this&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
bv = dt &amp;lt;&amp;lt; Bivariate( Y( :weight ), X( :height ), Fit Line( {Line Color( {212, 73, 88} )} ) );
xml = bv&amp;lt;&amp;lt;getxml;
file = savetextfile("$temp/teport.xml", xml);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;XPATH can search the xml. The xml is a representation of the report's display box tree. It will not include pictures of the report, but you could gather those pictures from the &amp;lt;PictureBox&amp;gt; nodes that XPATH could locate. I think all the numbers in the report will be there, and they will require a bit of study to grab them:&lt;/P&gt;
&lt;PRE&gt;&amp;lt;OutlineBox leftOffset=\!"0\!" topOffset=\!"19\!" width=\!"251\!" height=\!"124\!" helpKey=\!"Bivar Summary\!" isOpen=\!"true\!"&amp;gt;Summary of Fit&amp;lt;TableBox leftOffset=\!"14\!" topOffset=\!"29\!" width=\!"237\!" height=\!"97\!"&amp;gt;
            &amp;lt;StringColBox width=\!"172\!" height=\!"95\!"&amp;gt;
              &amp;lt;StringColBoxHeader&amp;gt;&amp;lt;/StringColBoxHeader&amp;gt;
              &amp;lt;StringColBoxItem&amp;gt;RSquare&amp;lt;/StringColBoxItem&amp;gt;
              &amp;lt;StringColBoxItem&amp;gt;RSquare Adj&amp;lt;/StringColBoxItem&amp;gt;
              &amp;lt;StringColBoxItem&amp;gt;Root Mean Square Error&amp;lt;/StringColBoxItem&amp;gt;
              &amp;lt;StringColBoxItem&amp;gt;Mean of Response&amp;lt;/StringColBoxItem&amp;gt;
              &amp;lt;StringColBoxItem&amp;gt;Observations (or Sum Wgts)&amp;lt;/StringColBoxItem&amp;gt;
            &amp;lt;/StringColBox&amp;gt;
            &amp;lt;NumberColBox leftOffset=\!"172\!" topOffset=\!"0\!" width=\!"64\!" height=\!"95\!"&amp;gt;
              &amp;lt;NumberColBoxHeader&amp;gt;&amp;lt;/NumberColBoxHeader&amp;gt;
              &amp;lt;NumberColBoxItem&amp;gt;0.502917&amp;lt;/NumberColBoxItem&amp;gt;
              &amp;lt;NumberColBoxItem&amp;gt;0.489836&amp;lt;/NumberColBoxItem&amp;gt;
              &amp;lt;NumberColBoxItem&amp;gt;15.85786&amp;lt;/NumberColBoxItem&amp;gt;
              &amp;lt;NumberColBoxItem&amp;gt;105&amp;lt;/NumberColBoxItem&amp;gt;
              &amp;lt;NumberColBoxItem&amp;gt;40&amp;lt;/NumberColBoxItem&amp;gt;
            &amp;lt;/NumberColBox&amp;gt;
          &amp;lt;/TableBox&amp;gt;
        &amp;lt;/OutlineBox&amp;gt;&lt;/PRE&gt;
&lt;P&gt;pairing up Root Mean Square Error with 15.85786&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Table Box with two columns" style="width: 285px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/54405i8C99D722638F4B99/image-size/large?v=v2&amp;amp;px=999" role="button" title="capture.png" alt="Table Box with two columns" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Table Box with two columns&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;will require loading both columns of the table. There won't be a key for Root Mean Square Error, but there is a way to find it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is an example of how XML and JSON are nearly identical languages (tree structured, tags ) but in practice XML tends to represent reports while JSON tends to represent data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you build something cool that you can share, maybe you can do a presentation at a JMP conference!&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jul 2023 23:05:11 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Is-it-possible-to-save-the-journal-or-report-file-as-a-json-file/m-p/655761#M84475</guid>
      <dc:creator>Craige_Hales</dc:creator>
      <dc:date>2023-07-05T23:05:11Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to save the journal or report file as a json file, or export it as a dictionary?</title>
      <link>https://community.jmp.com/t5/Discussions/Is-it-possible-to-save-the-journal-or-report-file-as-a-json-file/m-p/655769#M84476</link>
      <description>&lt;P&gt;You might find it easier to use VBA to automate JMP to get the reports you need into a word doc.&lt;/P&gt;
&lt;P&gt;You might be able to create the exact report you need and save it directly as a word doc.&lt;/P&gt;
&lt;P&gt;You might save the report as HTML and get everything (including the pictures). I've never used Beautiful Soup, but I believe it might give you a way to grab bits out of the HTML from Python.&lt;/P&gt;
&lt;P&gt;JSL is certainly capable of creating a JSON file of any parameters you want to send to Python; use a JSL associative array:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Write( As JSON Expr( ["a" =&amp;gt; "z", "b" =&amp;gt; ["c" =&amp;gt; 3, "d" =&amp;gt; 5]] ) );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;STRONG&gt;{"a":"z","b":{"c":3,"d":5}}&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jul 2023 23:24:11 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Is-it-possible-to-save-the-journal-or-report-file-as-a-json-file/m-p/655769#M84476</guid>
      <dc:creator>Craige_Hales</dc:creator>
      <dc:date>2023-07-05T23:24:11Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to save the journal or report file as a json file, or export it as a dictionary?</title>
      <link>https://community.jmp.com/t5/Discussions/Is-it-possible-to-save-the-journal-or-report-file-as-a-json-file/m-p/656104#M84520</link>
      <description>&lt;P&gt;Thank you very much. This is something that I can work with. Glad to know the report can be saved in HTML report. As you mentioned, I am planning to use BeautifulSoup for parsing.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jul 2023 17:34:42 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Is-it-possible-to-save-the-journal-or-report-file-as-a-json-file/m-p/656104#M84520</guid>
      <dc:creator>Kenobi</dc:creator>
      <dc:date>2023-07-06T17:34:42Z</dc:date>
    </item>
  </channel>
</rss>

