weibozhao commented on a change in pull request #24:
URL: https://github.com/apache/flink-ml/pull/24#discussion_r755673857
##########
File path: flink-ml-api/src/main/java/org/apache/flink/ml/param/Param.java
##########
@@ -75,7 +75,7 @@ public String jsonEncode(T value) throws IOException {
*/
@SuppressWarnings("unchecked")
public T jsonDecode(String json) throws IOException {
- return ReadWriteUtils.OBJECT_MAPPER.readValue(json, clazz);
+ return ReadWriteUtils.OBJECT_MAPPER.fromJson(json, clazz);
Review comment:
Just like writeValueAsString. I will modify it later.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]