Skip to content

Check is open curly bracket is considered JSON #11

@warrensbox

Description

@warrensbox

Check to see if something like this is considered json:

[
  {
    "name": "app-mock",
    "image": "${image}",
    "essential": true,
    "memoryReservation": 512,
    "portMappings": [
      {
        "containerPort": 8080,
        "hostPort": 0
      }
    ],
    "environment": [
      { "name": "CONFD_DYNAMO_TABLE", "value": "${confd_dynamo_table}" },
      { "name": "AWS_REGION", "value": "${region}" },
      { "name": "CONFIG_COMMIT_HASH", "value": "${config_commit_hash}" }
    ],
    "logConfiguration": {
      "logDriver": "awslogs",
      "options": {
        "awslogs-group": "/${environment}/mock",
        "awslogs-region": "${region}",
        "awslogs-stream-prefix": "mock-logs"
      }
    },
    "volumesFrom": [
      {
        "sourceContainer": "confd"
      }
    ]
  },
  {
    "name": "confd",
    "image": "${confd_image}",
    "cpu": 100,
    "memory": 500,
    "command": [
      "-noop",
      "-runonce"
    ],
    "essential": false
  }
]

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingenhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions