As the title states, the getaddednodeinfo RPC call, when invoked with the dns flag set to false, returns a JSON object with duplicate keys:
bitcoind getaddednodeinfo false { "addednode" : "1.2.3.4", "addednode" : "5.6.7.8" }
Most parsers will not handle this correctly. For example, paste {"addednode":"1.2.3.4","addednode":"5.6.7.8"} into http://jsonlint.com/ and look at the result.
I would suggest that is changed to an array of strings ["1.2.3.4","5.6.7.8"].
15:48 < gavinandresen> davec: can you file a bug? That should definitely get fixed.
15:49 < davec> gavinandresen: will do
15:51 < gavinandresen> davec: you sure it is broken? According to the help, getaddednodeinfo returns an array of objects
15:54 < davec> > bitcoind getaddednodeinfo false
15:54 < davec> > {
15:54 < davec> > "addednode" : "1.2.3.4",
15:54 < davec> > "addednode" : "5.6.7.8"
15:54 < davec> > }
15:54 < davec> gavinandresen: with the dns flag set to true, it is an array of objs
15:55 < gavinandresen> davec: ah, yeah. Definitely file a bug, getaddednodeinfo false should just return an aray of IP strings.