{"action":"created","issue":{"url":"https://api.github.com/repos/freifunkMUC/ffmap-backend/issues/7","labels_url":"https://api.github.com/repos/freifunkMUC/ffmap-backend/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/freifunkMUC/ffmap-backend/issues/7/comments","events_url":"https://api.github.com/repos/freifunkMUC/ffmap-backend/issues/7/events","html_url":"https://github.com/freifunkMUC/ffmap-backend/issues/7","id":107393501,"number":7,"title":"Experimental Firmware Nodes fügen zusätzliche Einträge ins JSON ein","user":{"login":"datenhahn","id":13999666,"avatar_url":"https://avatars.githubusercontent.com/u/13999666?v=3","gravatar_id":"","url":"https://api.github.com/users/datenhahn","html_url":"https://github.com/datenhahn","followers_url":"https://api.github.com/users/datenhahn/followers","following_url":"https://api.github.com/users/datenhahn/following{/other_user}","gists_url":"https://api.github.com/users/datenhahn/gists{/gist_id}","starred_url":"https://api.github.com/users/datenhahn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/datenhahn/subscriptions","organizations_url":"https://api.github.com/users/datenhahn/orgs","repos_url":"https://api.github.com/users/datenhahn/repos","events_url":"https://api.github.com/users/datenhahn/events{/privacy}","received_events_url":"https://api.github.com/users/datenhahn/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-09-20T13:57:48Z","updated_at":"2015-10-10T21:47:25Z","closed_at":null,"body":"Bei experimental Nodes finden sich im JSON File nodes.json komische \"function Einträge\", z.b. sowas:\r\n                        \"function: 0x97c670\": true,\r\n\r\n\r\n```\r\n                            }\r\n                        },\r\n                        \"function: 0x97c670\": true\r\n                    },\r\n                    \"mesh_interfaces\": [\r\n                        \"06:1c:d6:0b:aa:51\",\r\n                        \"06:1b:d7:0b:aa:51\"\r\n                    ]\r\n                },\r\n                \"node_id\": \"0418d60baa51\",\r\n                \"software\": {\r\n                    \"autoupdater\": {\r\n                        \"branch\": \"experimental\",\r\n                        \"enabled\": true\r\n                    },\r\n                    \"batman-adv\": {\r\n                        \"compat\": 15,\r\n                        \"function: 0x97c670\": true,\r\n                        \"version\": \"2014.4.0\"\r\n                    },\r\n                    \"fastd\": {\r\n```"},"comment":{"url":"https://api.github.com/repos/freifunkMUC/ffmap-backend/issues/comments/147128367","html_url":"https://github.com/freifunkMUC/ffmap-backend/issues/7#issuecomment-147128367","issue_url":"https://api.github.com/repos/freifunkMUC/ffmap-backend/issues/7","id":147128367,"user":{"login":"datenhahn","id":13999666,"avatar_url":"https://avatars.githubusercontent.com/u/13999666?v=3","gravatar_id":"","url":"https://api.github.com/users/datenhahn","html_url":"https://github.com/datenhahn","followers_url":"https://api.github.com/users/datenhahn/followers","following_url":"https://api.github.com/users/datenhahn/following{/other_user}","gists_url":"https://api.github.com/users/datenhahn/gists{/gist_id}","starred_url":"https://api.github.com/users/datenhahn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/datenhahn/subscriptions","organizations_url":"https://api.github.com/users/datenhahn/orgs","repos_url":"https://api.github.com/users/datenhahn/repos","events_url":"https://api.github.com/users/datenhahn/events{/privacy}","received_events_url":"https://api.github.com/users/datenhahn/received_events","type":"User","site_admin":false},"created_at":"2015-10-10T21:47:25Z","updated_at":"2015-10-10T21:47:25Z","body":"So noch weiter debugged und die Lösung gefunden. Wir brauchen diesen Patch in unserem luci json.lua . \r\n\r\nhttps://github.com/openwrt/luci/commit/304eec2ebaf983fd067e5ae719f8ec023aad8b30\r\n\r\nLustigerweise bin ich um das gewünschte Verhalten mit den gegebenen Mitteln (json.null in der lua-table) zu erzeugen genau auf die Lösung gekommen :) .\r\n\r\nDas Problem war, dass der Json-Parser keine empty json-objects aus empty lua-tables erzeugt hat. Mit dem hinzufügen eines \"json.null\" Entries in die erzeugten lua-tables in announce.lua und den nodeinfo.d scripten (z.B. interfaces) und dem ändern des Encoders, sodass dieser null-Werte als keys in tables ignoriert wurde das gefixt.\r\n\r\nWir haben anscheinend nur das hinzufügen der json.null Werte ohne die Änderung am Json-Encoder.\r\n"}}