ambiguous reference to overloaded definition, from a Java library

℡╲_俬逩灬. 提交于 2019-12-05 19:48:55

For this specific case you could just do

JsonPath.read(json.asInstanceOf[Object], "$.store.book[*].author")

This will only match one of overloaded methods (the one which takes Object). Presumably the method calls json.toString which is trivial since we already have a String.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!