Skip to content

Instantly share code, notes, and snippets.

@stuartlangridge
Forked from ralight/config.json
Last active June 26, 2017 22:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stuartlangridge/cd6b846e4a63a743b4d21035d204d91e to your computer and use it in GitHub Desktop.
Save stuartlangridge/cd6b846e4a63a743b4d21035d204d91e to your computer and use it in GitHub Desktop.
{
"retry_interval": 20,
"sys_interval": 10,
"listeners": {
"port": 1883,
"max_connections": -1,
"auth_plugin":
"plugin_path": "auth-plug.so",
"backends": "mysql",
}
}
retry_interval = 20
sys_interval = 10
listeners = {
{
port = 1883,
max_connections = -1,
auth_plugin =
plugin_path = "auth-plug.so",
backends = "mysql",
}
}
}
retry_interval: 20
sys_interval: 10
listeners:
one:
port: 1883
max_connections: -1
auth_plugin
plugin_path: "auth_plug.so"
backends: "mysql"
~/Scra+/ralight-configs $ python3 -c "import json; print(json.load(open('broken-config.json')))"
[snip]
json.decoder.JSONDecodeError: Expecting ',' delimiter: line 10 column 20 (char 151)
~/Scra+/ralight-configs $ python3 -c "import yaml; print(yaml.safe_load(open('broken-config.yaml')))"
[snip]
yaml.scanner.ScannerError: while scanning a simple key
in "broken-config.yaml", line 9, column 5
could not found expected ':'
in "broken-config.yaml", line 10, column 18
~/Scra+/ralight-configs $ lua broken-config.lua
lua: broken-config.lua:10: '}' expected (to close '{' at line 5) near '='
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment