我正在使用带有Anorm的playframework 2.1.0来查询数据库。我希望将结果序列化为json,而不需要经过任何中间对象/case类。DB.withConnection { implicit c => q().toList然后,我将这个结果从一个ListSqlRow转换为List[MapString,Any]。字符串,Any是列名,value (Object/Any)
val asMap = in
: Error trying to deepSerialize at flexjson.transformer.TransformerWrapper.transform(TransformerWrapper.java:22)at flexjson.JSONContext.transform(JSONContext.<e
,这是我收到的错误:
线程"main“中的异常:不能在flexjson.factories.BeanObjectFactory.instantiate(BeanObjectFactory.java:17) at flexjson.ObjectBinder.bind(ObjectBinder.java:86) at flexjson.ObjectBinder.bindIntoObject(ObjectBinder.javaat flexjson.ObjectB