{
  "Page": {
    "template": "stack",
    "pageType": "moleculeStack",
    "screenHeading": "Manage Profile",
    "hideFabOverlay": true,
    "suppressPostLaunchRequests": false,
    "tabBarHidden": true,
    "header": {
        "moleculeName": "header",
        "molecule": {
          "moleculeName": "headlineBody",
          "headline": {
            "moleculeName": "label",
            "text": "Zenkey"
          }
        }
      },
    "stack": {
      "moleculeName": "stack",
      "molecules": [
          {
            "moleculeName": "stackItem",
            "molecule": {
              "moleculeName": "testToggle",
              "fieldKey": "isActive"
            }
          },
        {
          "moleculeName": "stackItem",
          "molecule": {
            "moleculeName": "textField",
            "fieldKey": "firstName",
            "type": "text",
            "errorMessage": "Please enter a valid first name.",
            "placeholder": "John A",
            "titleLabel": {
              "moleculeName": "label",
              "text": "First Name"
            }
          }
        },
        {
          "moleculeName": "stackItem",
          "molecule": {
            "moleculeName": "textField",
            "fieldKey": "lastName",
            "type": "text",
            "placeholder": "Smith",
            "errorMessage": "Please enter a valid last name.",
            "titleLabel": {
              "moleculeName": "label",
              "text": "Last Name"
            }
          }
        },
        {
          "moleculeName": "stackItem",
          "molecule": {
            "moleculeName": "textField",
            "fieldKey": "phoneNumber",
            "type": "phone",
            "placeholder": "212-555-1234",
            "title": "Contact Phone Number",
            "errorMessage": "Please enter a valid phone number."
          }
        },
        {
          "moleculeName": "stackItem",
          "molecule": {
            "moleculeName": "textField",
            "fieldKey": "emailID",
            "type": "text",
            "placeholder": "JSMith123@gmail.com",
            "title": "Email",
            "errorMessage": "Please enter a valid greeting name."
          }
        },
        {
          "moleculeName": "stackItem",
          "molecule": {
            "moleculeName": "textFieldBase64",
            "fieldKey": "zipcode",
            "type": "number",
            "placeholder": "90210",
            "title": "Zip Code",
            "text": "NzUwMzQ=",
            "errorMessage": "Please enter a valid zip code."
          }
        }
      ]
    },
    "footer": {
      "moleculeName": "footer",
      "molecule": {
        "moleculeName": "twoButtonView",
        "primaryButton": {
          "moleculeName": "button",
          "title": "Edit",
          "groupName": "default",
          "action": {
            "actionType": "openPage",
            "pageType": "updateProfile",
            "extraParameters": {
              "from": "none"
            },
            "presentationStyle": "push"
          }
        }
      }
    },
    "formRules": [
      {
        "groupName": "default",
        "rules": [
          {
            "type": "regex",
            "fields": [
              "emailID"
            ],
            "regex": "^[a-zA-Z0-9](\\.?\\_?\\-?[a-zA-Z0-9]){0,}@[a-zA-Z0-9-_]+\\.([a-zA-Z0-9-_]{1,}\\.){0,}[a-zA-Z]{2,}$"
          },
          {
            "type": "regex",
            "fields": [
              "zipcode"
            ],
            "regex": "^\\d{5}(?:[-\\s]\\d{4})?$"
          },
          {
            "regex": "^(\\d{3})[\\s.-]{0,1}(\\d{3})[\\s.-]{0,1}(\\d{4})$",
            "type": "regex",
            "fields": [
              "phoneNumber"
            ]
          },
          {
            "type": "allRequired",
            "ruleId": "requiredRule",
            "fields": [
              "emailID",
              "firstName",
              "lastName"
            ]
          }
        ]
      }
    ]
  }
}
