neverlock
6/18/2015 - 11:40 AM

config.json for test complex json parser

config.json for test complex json parser

{
  "status_code": 200,
  "status_txt": "OK",
  "data": {
    "version": "0.3.2",
    "health": "OK",
    "topics": [
      {
        "topic_name": "test",
        "channels": [
          {
            "channel_name": "neverlock",
            "depth": 14,
            "backend_depth": 13,
            "in_flight_count": 0,
            "deferred_count": 0,
            "message_count": 0,
            "requeue_count": 0,
            "timeout_count": 0,
            "clients": [],
            "paused": false,
            "e2e_processing_latency": {
              "count": 0,
              "percentiles": null
            }
          },
          {
            "channel_name": "nsq_to_file",
            "depth": 0,
            "backend_depth": 0,
            "in_flight_count": 0,
            "deferred_count": 0,
            "message_count": 0,
            "requeue_count": 0,
            "timeout_count": 0,
            "clients": [
              {
                "name": "MacBook-Pro-khxng-Chanchai",
                "client_id": "MacBook-Pro-khxng-Chanchai",
                "hostname": "MacBook-Pro-khxng-Chanchai.local",
                "version": "V2",
                "remote_address": "127.0.0.1:53286",
                "state": 3,
                "ready_count": 8,
                "in_flight_count": 0,
                "message_count": 0,
                "finish_count": 0,
                "requeue_count": 0,
                "connect_ts": 1433835311,
                "sample_rate": 0,
                "deflate": false,
                "snappy": false,
                "user_agent": "go-nsq/1.0.5-alpha",
                "tls": false,
                "tls_cipher_suite": "",
                "tls_version": "",
                "tls_negotiated_protocol": "",
                "tls_negotiated_protocol_is_mutual": false
              }
            ],
            "paused": false,
            "e2e_processing_latency": {
              "count": 0,
              "percentiles": null
            }
          }
        ],
        "depth": 0,
        "backend_depth": 0,
        "message_count": 0,
        "paused": false,
        "e2e_processing_latency": {
          "count": 0,
          "percentiles": null
        }
      },
      {
        "topic_name": "write_test",
        "channels": [
          {
            "channel_name": "ch",
            "depth": 0,
            "backend_depth": 0,
            "in_flight_count": 0,
            "deferred_count": 0,
            "message_count": 0,
            "requeue_count": 0,
            "timeout_count": 0,
            "clients": [],
            "paused": false,
            "e2e_processing_latency": {
              "count": 0,
              "percentiles": null
            }
          }
        ],
        "depth": 0,
        "backend_depth": 0,
        "message_count": 0,
        "paused": false,
        "e2e_processing_latency": {
          "count": 0,
          "percentiles": null
        }
      }
    ]
  }
}
{"object":
    {
       "buffer_size": 10,
       "Databases":
       [
               {
                       "host": "localhost",
                       "user": "root",
                       "pass": "",
                       "type": "mysql",
                       "name": "go",
                       "Tables":
                       [
                               {
                                       "name": "testing",
                                       "statment": "teststring",
                                       "regex": "teststring ([0-9]+) ([A-z]+)",
                                       "Types":
                                        [
                                           {
                                               "id": "int",
                                               "value": "string"
                                           }
                                        ]
                               }
                       ]
               }
       ]
    }
}