<?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: Postman Updated with JSON Magic visualization in Network Platform API</title>
    <link>https://community.cisco.com/t5/network-platform-api/postman-updated-with-json-magic-visualization/m-p/5437223#M5928</link>
    <description>&lt;P&gt;Nice!  I use a completely separate tool just to do this now (copy and paste the JSON and then visualise it).&lt;/P&gt;</description>
    <pubDate>Sat, 13 Jul 2024 00:48:27 GMT</pubDate>
    <dc:creator>Philip D'Ath</dc:creator>
    <dc:date>2024-07-13T00:48:27Z</dc:date>
    <item>
      <title>Postman Updated with JSON Magic visualization</title>
      <link>https://community.cisco.com/t5/network-platform-api/postman-updated-with-json-magic-visualization/m-p/5437222#M5927</link>
      <description>&lt;H1&gt;JSON Magic&lt;/H1&gt;&lt;P&gt;&lt;EM&gt;a Postman Visualization for the Meraki API Collection&lt;BR /&gt;&lt;BR /&gt;&lt;/EM&gt;We just made some nice updates to the Postman collection, enabling a simpler way to view, transform and export the data. &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;What does it do?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Allows Postman users to select "Visualize" and have their complex JSON turn into a beautiful spreadsheet.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Who's it for?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Anybody who has a Meraki API key, a free copy of Postman, and would like to easily generate their own reports using hundreds of API operations.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;How do I get it?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Just use the &lt;A href="https://developer.cisco.com/meraki/build/meraki-postman-collection-getting-started/" target="_blank" rel="noopener nofollow noreferrer"&gt;Meraki Postman Collection&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;div class="lia-vid-container video-embed-center"&gt;&lt;div id="lia-vid-6380337080112w320h240r116" class="lia-video-brightcove-player-container"&gt;&lt;video-js data-video-id="6380337080112" data-account="6058004235001" data-player="default" data-embed="default" class="vjs-fluid" controls="" data-application-id="" style="width: 100%; height: 100%;"&gt;&lt;/video-js&gt;&lt;/div&gt;&lt;script src="https://players.brightcove.net/6058004235001/default_default/index.min.js"&gt;&lt;/script&gt;&lt;script&gt;(function() {  var wrapper = document.getElementById('lia-vid-6380337080112w320h240r116');  var videoEl = wrapper ? wrapper.querySelector('video-js') : null;  if (videoEl) {     if (window.videojs) {       window.videojs(videoEl).ready(function() {         this.on('loadedmetadata', function() {           this.el().querySelectorAll('.vjs-load-progress div[data-start]').forEach(function(bar) {             bar.setAttribute('role', 'presentation');             bar.setAttribute('aria-hidden', 'true');           });         });       });     }  }})();&lt;/script&gt;&lt;a class="video-embed-link" href="https://community.cisco.com/t5/video/gallerypage/video-id/6380337080112"&gt;(view in My Videos)&lt;/a&gt;&lt;/div&gt;&lt;/P&gt;&lt;H3&gt;Quick Start Guide&lt;/H3&gt;&lt;OL&gt;&lt;LI&gt;&lt;STRONG&gt;Collect Data:&lt;/STRONG&gt;&lt;UL&gt;&lt;LI&gt;Send a Postman API request using the Meraki Postman Collection.&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Visualize Data:&lt;/STRONG&gt;&lt;UL&gt;&lt;LI&gt;Select the &lt;STRONG&gt;Visualize&lt;/STRONG&gt; button in the response toolbar to display the data in table format&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Transform Data:&lt;/STRONG&gt;&lt;UL&gt;&lt;LI&gt;Click the &lt;STRONG&gt;Transform JSON&lt;/STRONG&gt; button to write a custom expression to manipulate the data.&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Copy CSV:&lt;/STRONG&gt;&lt;UL&gt;&lt;LI&gt;You can easily copy the CSV table into your clipboard and then paste it into a spreadsheet for further analysis.&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;H3&gt; &lt;/H3&gt;&lt;H3&gt; &lt;/H3&gt;&lt;H3&gt;Example JSONata Expressions&lt;/H3&gt;&lt;P&gt;Here's a quick look at what you can do with &lt;A href="https://docs.jsonata.org" target="_self" rel="nofollow noopener noreferrer"&gt;JSONata&lt;/A&gt; expressions.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Source Data&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;[
    {
        "occurredAt": "2024-07-12T08:14:47Z",
        "alertTypeId": "motion_alert",
        "device": {
            "name": "Home - Front Door",
            "serial": "Q2FV-PF2X-XXXX",
            "model": "MV12WE"
        },
        "alertData": {
            "imageUrl": "https://example.s3.eu-central-1.amazonaws.com/sp/vf/..."
        }
    }
]&lt;/PRE&gt;&lt;H4&gt; &lt;/H4&gt;&lt;H4&gt;Basic Transformations&lt;BR /&gt;&lt;BR /&gt;&lt;/H4&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Extract Device Names:&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;$.device.name&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;Output:&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;["Home - Front Door"]

&lt;/PRE&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Extract Unique Device Models:&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;$.device.model ~&amp;gt; $distinct&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;Output:&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;["MV12WE"]&lt;/PRE&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Filter Alerts by a Specific Type:&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;$[alertTypeId="motion_alert"]&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;Output:&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;[
    {
        "occurredAt": "2024-07-12T08:14:47Z",
        "alertTypeId": "motion_alert",
        ...
    }
]&lt;/PRE&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Count the Number of Alerts:&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;$count($)&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;Output:&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;1&lt;/PRE&gt;&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Summarize Alerts by Destination Type:&lt;/STRONG&gt;&lt;PRE&gt;{
    "email": $count($.destinations.email),
    "push": $count($.destinations.push),
    "sms": $count($.destinations.sms),
    "webhook": $count($.destinations.webhook)
}&lt;/PRE&gt;&lt;STRONG&gt;Output:&lt;/STRONG&gt;&lt;PRE&gt;{
    "email": 1,
    "push": 1,
    "sms": 1,
    "webhook": 1
}&lt;/PRE&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Get the &lt;A href="https://developer.cisco.com/meraki/build/meraki-postman-collection-getting-started" target="_self" rel="nofollow noopener noreferrer"&gt;Meraki Postman Collection&lt;/A&gt; to easily interact with the API and quickly generate reports.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jul 2024 14:07:25 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/postman-updated-with-json-magic-visualization/m-p/5437222#M5927</guid>
      <dc:creator>DexterLabora</dc:creator>
      <dc:date>2024-07-12T14:07:25Z</dc:date>
    </item>
    <item>
      <title>Re: Postman Updated with JSON Magic visualization</title>
      <link>https://community.cisco.com/t5/network-platform-api/postman-updated-with-json-magic-visualization/m-p/5437223#M5928</link>
      <description>&lt;P&gt;Nice!  I use a completely separate tool just to do this now (copy and paste the JSON and then visualise it).&lt;/P&gt;</description>
      <pubDate>Sat, 13 Jul 2024 00:48:27 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/postman-updated-with-json-magic-visualization/m-p/5437223#M5928</guid>
      <dc:creator>Philip D'Ath</dc:creator>
      <dc:date>2024-07-13T00:48:27Z</dc:date>
    </item>
  </channel>
</rss>

