C3 Data Convert Example

4

Index

Stats

3,087 visits, 6,452 views

Tools

Translations

This tutorial hasn't been translated.

License

This tutorial is licensed under CC BY 4.0. Please refer to the license text if you wish to reuse, share or remix the content contained within this tutorial.

Published on 27 Dec, 2023. Last updated 11 Sep, 2024

In File

You can paste the JSON into some third-party tools and format it.

For example:

Json Crack

Json Crack

VS Code

VSCode

Note: you need to first select the language mode as JSON.

In Game

1. Create a 'Text Input' Object

2. Set the 'Type' properties to 'Textarea'

3. Output JSON

Output the code of the entire JSON object.

Set Text to JSON.ToBeautifiedString

If you want to test partial you can also use.

Set Text to JSON.GetAsBeautifiedString("path")

4. For example:

JSON.ToBeautifiedString

{
    "a001": {
        "ID": "a001",
        "Name": "Apple",
        "Cost": 12
    },
    "a002": {
        "ID": "a002",
        "Name": "Banana",
        "Cost": 24
    },
    "a003": {
        "ID": "a003",
        "Name": "Carrot",
        "Cost": 32
    }
}

JSON.GetAsBeautifiedString("a001")

{
    "ID": "a001",
    "Name": "Apple",
    "Cost": 12
}
  • 0 Comments

Want to leave a comment? Login or Register an account!