Skip to content

anibalalpizar/json-to-xml-converter

Repository files navigation

JSON to XML Converter

A modern web application built with Next.js that allows users to convert JSON data to XML format with ease.

🌐 Try it live

Light Mode Dark Mode
JSON to XML Converter JSON to XML Converter

Features

  • πŸ”„ Real-time JSON to XML conversion
  • 🎨 Beautiful and responsive UI with dark/light mode support
  • ✨ Syntax highlighting for both JSON and XML
  • πŸ“‹ Easy copy/paste functionality
  • πŸ”— Shareable conversion links
  • πŸ“± Mobile-friendly design
  • 🎯 Built-in JSON validation and formatting
  • πŸ“š Pre-built examples for quick testing

Tech Stack

Getting Started

Prerequisites

  • Node.js 20 or higher
  • npm or yarn package manager

Installation

  1. Clone the repository:
git clone https://github.com/anibalalpizar/json-to-xml-converter.git
cd json-to-xml-converter
  1. Install dependencies:
npm install
# or
yarn install
  1. Start the development server:
npm run dev
# or
yarn dev
  1. Open http://localhost:3000 in your browser

Project Structure

src/
β”œβ”€β”€ app/                 # Next.js app router
β”œβ”€β”€ components/         
β”‚   β”œβ”€β”€ convert/        # Conversion-related components
β”‚   β”œβ”€β”€ layout/         # Layout components
β”‚   └── ui/             # Reusable UI components
β”œβ”€β”€ hooks/              # Custom React hooks
β”œβ”€β”€ lib/                # Utility functions and services
β”‚   β”œβ”€β”€ services/       # Business logic services
β”‚   └── utils.ts        # Helper functions
└── types/              # TypeScript type definitions

Usage

  1. Enter or paste your JSON data in the left editor
  2. The converted XML will appear in real-time on the right
  3. Use the format button to beautify your JSON
  4. Share your conversion by clicking the share button
  5. Toggle between light and dark modes using the theme switcher

Demo

Try out the live demo at https://json-to-xml.vercel.app/

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

  1. Fork the project
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

License

This project is licensed under the MIT License - see the LICENSE file for details.

Support

If you find this project helpful, please give it a ⭐️ on GitHub!

Releases

No releases published

Packages

No packages published