Original

OnePlanetOnePeople004  


				
"],"name":"One Planet One People 004","mediaType":"text/html"}],"description":["This project was created to celebrate Earth day 2023. We should","all recognise the beauty and diversity of our planet & promote","the unity of the global community in preserving and protecting","it. The project seeks to inspire individuals to take action","towards a more sustainable future and to recognize that we all","share a responsibility to care for our single planet."],"mediaType":"image/png","medium":"Fully On-Chain BlockGen.Art Canvas","properties":{"Type":"Contenders Edition"}}; jsonData.image = null; jsonData.files = null; // Function to format JSON function formatJSON(jsonObj) { var formatted = JSON.stringify(jsonObj, null, 1); // Remove the first and last curly braces //formatted = formatted.slice(1, -1); // Replace commas with newlines formatted = formatted.replace(/,/g, ''); //formatted = formatted.replace(/[{}]/g, ' '); //formatted = formatted.replace(/{\n/g, 'xx'); // Removes all curly braces followed by newline formatted = formatted.replace(/{[\n\s]*|[\n\s]*}/g, ''); // Removes all curly braces followed by or preceding newline and whitespace formatted = formatted.replace(/: "(.*?)"/g, ': $1"'); //formatted = formatted.replace(/"/g, ''); return formatted; } // Display formatted JSON in the HTML element var jsonOutputElement = document.getElementById("jsonOutput"); jsonOutputElement.innerHTML = formatJSON(jsonData);