Use json_encode/decode in IdSerializer to support combined primary keys.