-
Notifications
You must be signed in to change notification settings - Fork 6.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
请问有scala版本吗? #267
Comments
很抱歉,目前fastjson没有scala的版本 |
有没有sample? |
目前测试对scala的map序列化是不成功的。只有使用scala.collection.JavaConversions.mapAsJavaMap转换之后可以使用。从json string转换为对象应该没什么问题。 |
其实可以直接对需要序列化的field 加上 @BeanProperty 。。。 class ExampleModel(@BeanProperty val xxMsg: XxMsg){
@BeanProperty
val abc = 123;
}
|
我不熟悉scala,能否帮忙实现一个哈,参与进来一起完善 |
@nilday 从json string转换为scala map应该也会出问题 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
直接用case class,而不是常规的Java Bean规范的类。
The text was updated successfully, but these errors were encountered: