Add a function to parse a JSON-map
Add a function to parse a JSON-map

To simplify sending data over the wire, add a function
that tries to parse a map that is encoded as a JSON object
in the obvious way.

Signed-off-by: Klaus Aehlig <4ce51de36d9068cd7db2eec1151e0f3f95419008@google.com>
Reviewed-by: Petr Pudlak <9d19625f8ee825a2c398462ed335cbcf98f79c32@google.com>

ganeti/ganeti,yiannist/ganeti,andir/ganeti,onponomarev/ganeti,yiannist/ganeti,leshchevds/ganeti,bitemyapp/ganeti,dimara/ganeti,andir/ganeti,andir/ganeti,mbakke/ganeti,onponomarev/ganeti,mbakke/ganeti,grnet/snf-ganeti,mbakke/ganeti,leshchevds/ganeti,grnet/snf-ganeti,leshchevds/ganeti,ganeti/ganeti,yiannist/ganeti,ganeti/ganeti,bitemyapp/ganeti,dimara/ganeti