<?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 Doubt about changing format of JSON in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Doubt-about-changing-format-of-JSON/m-p/2241883#M28898</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm receiving some JSON data in this format:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;{
    "paging": {
        "pageIndex": 1,
        "pageSize": 100,
        "total": 1
    },
    "measures": [
        {
            "metric": "A",
            "history": [
                {
                    "date": "2019-04-23T20:56:48+0000",
                    "value": "15"
                }
            ]
        },
        {
            "metric": "B",
            "history": [
                {
                    "date": "2019-04-23T20:56:48+0000",
                    "value": "1.0"
                }
            ]
        }
    ]
}&lt;/PRE&gt;&lt;P&gt;What I'd like to obtain is another JSON with the date (which is the same for all the metrics that I'm going to take) and, then, the metrics with their values this format (some kind of denormalizing the data related to metrics in order to get the pairs "metric_name":"metric_value").&lt;/P&gt;&lt;PRE&gt;{&lt;BR /&gt;    "date":"2019-04-23T20:56:48+0000", "A": "15","B": "1.0"...// and all other metrics
}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Is there any Talend component with which I can take this output or similar?&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 02:01:12 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-11-16T02:01:12Z</dc:date>
    <item>
      <title>Doubt about changing format of JSON</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Doubt-about-changing-format-of-JSON/m-p/2241883#M28898</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm receiving some JSON data in this format:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;{
    "paging": {
        "pageIndex": 1,
        "pageSize": 100,
        "total": 1
    },
    "measures": [
        {
            "metric": "A",
            "history": [
                {
                    "date": "2019-04-23T20:56:48+0000",
                    "value": "15"
                }
            ]
        },
        {
            "metric": "B",
            "history": [
                {
                    "date": "2019-04-23T20:56:48+0000",
                    "value": "1.0"
                }
            ]
        }
    ]
}&lt;/PRE&gt;&lt;P&gt;What I'd like to obtain is another JSON with the date (which is the same for all the metrics that I'm going to take) and, then, the metrics with their values this format (some kind of denormalizing the data related to metrics in order to get the pairs "metric_name":"metric_value").&lt;/P&gt;&lt;PRE&gt;{&lt;BR /&gt;    "date":"2019-04-23T20:56:48+0000", "A": "15","B": "1.0"...// and all other metrics
}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Is there any Talend component with which I can take this output or similar?&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 02:01:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Doubt-about-changing-format-of-JSON/m-p/2241883#M28898</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T02:01:12Z</dc:date>
    </item>
  </channel>
</rss>

