{
    "components": [
        {
            "type": "TEXTFIELD",
            "attributes":{
                "label": "Janith",
            "placeholder": "Placeholder or hint of the text field",
            "code": "unique_code",
            "input_type": "TEXT",
            "required": true,
            "min_length": 0,
            "max_length": 255,
            "pattern": ".*",
            "default": [""]
            }
        },
          {
            "type": "TEXTFIELD",
            "attributes":{
                "label": "Last Name",
            "placeholder": "Placeholder or hint of the text field",
            "code": "unique_code",
            "input_type": "TEXT",
            "required": true,
            "min_length": 0,
            "max_length": 255,
            "pattern": ".*",
            "default": [""]
            }
        },
        {
            "type": "TEXTAREA",
            "attributes":{
                "label": "Label of the text area",
            "placeholder": "Placeholder or hint",
            "code": "unique_code",
            "required": true,
            "rows": 4,
            "cols": 2,
            "maxLength": 500,
            "default": [""]
            }
        },
        {
            "type": "DROPDOWN",
            "attributes" : {
                "label": "Dropdown Label",
            "code": "unique_code",
            "options": [
                {
                    "label": "Milinda",
                    "value": "1"
                },
                {
                    "label": "Option 2",
                    "value": "2"
                },
                {
                    "label": "Option 3",
                    "value": "3"
                }
            ],
            "required": true,
            "multiple": false,
            "default": ["1"]
            }
        },
        {
            "type": "RADIOGROUP",
            "attributes":{
                "label": "Radio Group Label",
            "code": "unique_code",
            "options": [
                {
                    "label": "Yes",
                    "value": "yes"
                },
                {
                    "label": "No",
                    "value": "no"
                },
                {
                    "label": "Dont no",
                    "value": "dno"
                }
            ],
            "required": true,
            "default": ["yes"]
            }
        },
        {
            "type": "CHECKBOXGROUP",
            "attributes":{
                "label": "Checkbox Group Label",
            "code": "unique_code",
            "options": [
                {
                    "label": "Apple",
                    "value": "apple"
                },
                {
                    "label": "Orange",
                    "value": "orange"
                }
            ],
            "required": true,
            "default": [
                "apple"
            ],
            "min_selected": 1,
            "max_selected": 2
            }
        },
        {
            "type": "DATETIME",
            "attributes":{
                "label": "Date Picker Label",
            "date_type": "DATE",
            "code": "unique_code",
            "min_date": "2023-01-01",
            "max_date": "2025-12-31",
            "default": ["2024-01-01"],
            "range": false
            }
        },
        {
            "type": "UPLOAD",
           "attributes":{
                "label": "File Upload",
            "input_type": "FILE",
            "code": "unique_code",
            "accept": [
                ".jpg",
                ".png",
                ".pdf"
            ],
            "multiple": false,
            "required": true,
            "maxSizeMB": 5
           }
        },
       
        {
            "type": "BUTTON",
            "attributes":{
                "label": "Submit",
            "code": "submit_button",
            "button_type": "submit",
            "action": "submitForm()"
            }
        }
    ]
}