lib/json_serialization: intro and use a map based on is_same_serialized