Talstra Json Folder & Files Maker

Example JSON

Estimated reading: 2 minutes 289 views Contributors

This Json below represents a hierarchical structure of folders and files. It provides information about the name, type, and content of each item in the structure. The root item is a folder called “Projects”. It contains four child items, each of which is also a folder with a different name. Each folder has a “children” array, which lists the child items within it. The child items can be either folders or files.

The properties for each item are as follows:

  • “name”: A string that represents the name of the item.
  • “type”: A string that represents the type of the item, which can be either “folder” or “file”.
  • “children”: An array that lists the child items within a folder. This property is only present for items that are folders.
  • “content”: A string that represents the content of a file. This property is only present for items that are files.

Copy and paste the json below into the canvas view of your copy of Talstra Json Folder & Files Maker. Go to the Make Folder tab, and select the Run JSON button to create the folders and files.

{
    "name": "Projects",
    "type": "folder",
    "children": [
        {
            "name": "Context",
            "type": "folder",
            "children": [
                {
                    "name": "ReadMe.txt",
                    "type": "file",
                    "content": "This text will be written to teh file"
                }
            ]
        },
        {
            "name": "Folder_Name_Here",
            "type": "folder",
            "children": [
                {
                    "name": "Example_ReadMe.txt",
                    "type": "file",
                    "content": "This is the example text"
                }
            ]
        },
        {
            "name": "Requirements",
            "type": "folder",
            "children": [
                {
                    "name": "HtmlExampleFile.html",
                    "type": "file",
                    "content": "<h1> You can write it as HTML too</h1>"
                }
            ]
        },
        {
            "name": "Study",
            "type": "folder",
            "children": [
                {
                    "name": "ReadMe.html",
                    "type": "file",
                    "content": "This read me will be inside the study folder."
                }
            ]
        }
    ]}
Share this Doc

Example JSON

Or copy link

CONTENTS

Chat Icon Close Icon