Skip to content
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

Open
xialvjun opened this issue Jan 4, 2015 · 6 comments
Open

请问有scala版本吗? #267

xialvjun opened this issue Jan 4, 2015 · 6 comments

Comments

@xialvjun
Copy link

xialvjun commented Jan 4, 2015

直接用case class,而不是常规的Java Bean规范的类。

@yakolee
Copy link
Contributor

yakolee commented Jan 13, 2015

很抱歉,目前fastjson没有scala的版本

@caselchen
Copy link

有没有sample?

@nilday
Copy link

nilday commented Jun 28, 2016

目前测试对scala的map序列化是不成功的。只有使用scala.collection.JavaConversions.mapAsJavaMap转换之后可以使用。从json string转换为对象应该没什么问题。

@caorong
Copy link

caorong commented Jul 11, 2016

其实可以直接对需要序列化的field 加上 @BeanProperty 。。。
e.g:

class ExampleModel(@BeanProperty val xxMsg: XxMsg){
  @BeanProperty
  val abc = 123;
}
{"xxmsg": xxx,  "abc": xx}

@wenshao
Copy link
Member

wenshao commented Sep 5, 2016

我不熟悉scala,能否帮忙实现一个哈,参与进来一起完善

@kamushin
Copy link

@nilday 从json string转换为scala map应该也会出问题

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants