Warsaw Dynamics
  • Subscribe with Child Pages
  • Unsubscribe with Child Pages
✓ Subscribed
Advanced search
  • Subscribe with Child Pages
  • Unsubscribe with Child Pages
✓ Subscribed

JSON macro

Documentation:

https://www.json.org/json-en.html

https://www.w3schools.com/js/js_json_syntax.asp

Description

JSON (JavaScript Object Notation) is a lightweight data-interchange format that is easy for humans to read and write and easy for machines to parse and generate. It is based on key-value pairs and supports various data types including strings, numbers, arrays, and objects.

Potential use cases

  • Viewing configuration files and data: JSON is used for storing configuration settings in applications and systems, and also to store complicated data structures due to its simplicity and readability.

  • Analysing API responses: Many web APIs return data in JSON format, allowing developers to easily consume and process the data in their applications.

Additional options

Name

Type

Function

Choose at what depth nodes will be collapsed

number

deeply nested nodes will be automatically collapsed, making the viewing experience more pleasant

Display data types of values

check

displays small text containing value type

Enable fast and easy value clipboard

check

copy values or whole nodes with a simple click on the icon

Sort keys alphabetically

check

Sorts displayed keys alphabetically

Enable quotes on keys

check

Enables quotes on keys - keeps formatting closer to raw file format

Display the count of elements in a node

check

Displays the count of elements in a node

Examples:

{
  "name": "John Doe",
  "age": 30,
  "email": "john.doe@example.com",
  "address": {
    "street": "123 Main St",
    "city": "Anytown",
    "state": "CA",
    "zip": "12345"
  },
  "is_subscribed": true,
  "interests": ["programming", "hiking", "photography"]
}

Enabled options:

  • all checks

  • Choose at what depth nodes will be collapsed (3)

Powered by: External Share for Confluence