json_builder 0.0.1 copy "json_builder: ^0.0.1" to clipboard
json_builder: ^0.0.1 copied to clipboard

A visual tool to build Json objects

Json Builder #

json_builder is a Flutter package that provides an intuitive visual interface for creating and editing JSON objects. It allows you to build, edit, and manipulate JSON structures in a simple and visually appealing way.

Features #

  • Visual interface for creating and editing JSON structures
  • Support for all JSON data types: strings, numbers, booleans, objects, and arrays
  • Interactive editing with dialogs for modifying values
  • Visualization with colors for different data types
  • Functionality to copy formatted JSON to the clipboard

Installation #

Add json_builder to your pubspec.yaml file:

dependencies:
  json_builder: latest

Then run:

flutter pub get

Usage #

import 'package:json_builder/json_builder.dart';

// Create a new JSON object
Jon json = {
    'name': 'John Doe',
    'age': 30,
    'isMarried': false,
    'address': {
        'street': '123 Main St',
        'city': 'Anytown',
        'state': 'NY',
        'zip': '12345'
    },
    'children': ['Alice', 'Bob', 'Charlie']
};

// Use the JsonBuilder widget to edit the JSON object
JsonBuilder(
    json: json,
    onChanged: (json) {
        // Handle changes to the JSON object
        setState(() => this.json = json);
    },
)

Full Example #

Check the examples directory for a complete implementation.

[Sample] [Sample edit]

License #

This project is licensed under the MIT License.

0
likes
150
points
21
downloads

Publisher

unverified uploader

Weekly Downloads

A visual tool to build Json objects

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on json_builder