stop using deprecated json-c functions

Signed-off-by: Jakub Filak <jfilak@redhat.com>