The current output format of alfred -r looks like this:
{ "fe:f1:00:00:01:01", "OpenWRT-node-1\x0a" }, { "fe:f1:00:00:02:01", "OpenWRT-node-2\x0a" }, { "fe:f1:00:00:03:01", "OpenWRT-node-3\x0a" },
It's not clear how one should parse this as there is no documentation except the source code.
With my patch, it'll look like this:
{ "fe:f1:00:00:01:01": "OpenWRT-node-1\u000a", "fe:f1:00:00:02:01": "OpenWRT-node-2\u000a", "fe:f1:00:00:03:01": "OpenWRT-node-3\u000a" }
This is JSOΝ which is well documented and thus can be parsed easily. It's a dictionary with the node's ID as the key and the data as value.
At Sun, 8 Sep 2013 10:39:23 +0800, Marek Lindner wrote:
On Sunday, September 08, 2013 04:56:39 Nils Schneider wrote:
The current output format isn't really broken, just tricky to parse. I decided to make it valid JSOΝ as it was already pretty close. This allows parsing with virtually any programming language.
Please be more specific about what was broken and how your fix addresses the problem. An example would be nice too.
Cheers, Marek