Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesnetherton committed May 16, 2024
1 parent 7c19091 commit 67ca90b
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,7 @@ public String json2csv(String json) throws Exception {
final List<Map<String, Object>> objects = new ObjectMapper().readValue(json,
new TypeReference<List<Map<String, Object>>>() {
});
return producerTemplate.requestBody(
"direct:json-to-csv",
objects,
String.class);
return null;
}

@SuppressWarnings("unchecked")
Expand All @@ -61,6 +58,6 @@ public String json2csv(String json) throws Exception {
@Consumes(MediaType.TEXT_PLAIN)
@Produces(MediaType.APPLICATION_JSON)
public List<List<Object>> csv2json(String csv) throws Exception {
return producerTemplate.requestBody("direct:csv-to-json", csv, List.class);
return null;
}
}

0 comments on commit 67ca90b

Please sign in to comment.