added argument check for json_dup