add parser to generic object.

Parse result of the main nsd control commands as generic object instead of a string.