Use JSON_REJECT_DUPLICATES define when calling json_loads().

Signed-off-by: Thiago Farina <tfarina@chromium.org>