Skip to content

Use a JSON to Java mapper #11

@roguib

Description

@roguib

In many places of the codebase there's code that converts a plain string into a object:

final String jsonEvalRes = response.as(String.class);
JsonObject object = jsonReader.readObject();
jsonReader.close();
final EvalResponse evalRes = new EvalResponse(object.getString("result"), object.getString("status"));

This should be handled automatically by a mapper.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

Status

Backlog

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions