Allow users to select between JSON and XML formats above the text input area using a dropdown selector. Additionally, along with the implementation of Beautify Json implement logic to detect if the entered text is XML and beautify it.
Allow selection of JSON / XML above the text area as a select and also add the logic to detect if the entered text is XML.
If an XML is entered - beautify the XML
Create a website that has an input field which takes json as input and when user chicks on the button "Beautify json", it beautifies it making single value in one line with proper indentation and displays it to the user.
use these tec stacks html, css and js to create the website