JSFiddle - React, Tailwind, and code Playground
HTML
<h1>
JSON</h1>
<pre id="json"></pre>
<h1>
CSV</h1>
<pre id="csv"></pre>
JavaScript
$(document).ready(function () {
$(document).ready(function () {
// Create Object
var c=[
{
"_index": "test",
"_type": "news",
"_source": {
"partnerName": "propertyFile 9",
"relatedSources": "null",
"entityCount": "50",
"Categories": {
"Types": {
"Events":
[
{
"count": 1,
"term": "Time",
"Time":
[
{
"term": "Dec 9",
"Dec_9":
[
{
"count": 1,
"term": "2012"
}
]
}
]
},
{
"count": 4,
"term": "News",
"News": [
{
"term": "Germany",
"Germany": [
{
"count": 1,
"term": "Election"
}
],
"currency": "Euro (EUR)"
},
{
"term": "Egypt",
"Egypt": [
{
"count": 1,
"term": "Revolution"
}
]
},
{
"term": "Japan",
"Japan": [
{
"count": 1,
"term": "Earthquake"
}
],
"currency": "Yen (JPY)"
}
]
},
{"count": 5,
"term": "Persons",
...