Fixing bug in json parser for empty arrays and objects

Signed-off-by: Vinzenz Feenstra <vfeenstr@redhat.com>