Skip to content
This repository has been archived by the owner on Nov 27, 2018. It is now read-only.

Not work on simple example #27

Open
semmaxim opened this issue Sep 8, 2015 · 0 comments
Open

Not work on simple example #27

semmaxim opened this issue Sep 8, 2015 · 0 comments

Comments

@semmaxim
Copy link

semmaxim commented Sep 8, 2015

Result of this code is empty.

import com.lambdaworks.jacks.JacksMapper

class First (val num: Int, val str: String) {}
class Second (val firstClass: First, val num: Int, val str: String) {}
class Third (val firstClass: First, val secondClass: Second, val num: Int, val str: String) {}

object Program extends App{
    val first = new First(1, "first")
    val second = new Second(first, 11, "second")
    val third = new Third(first, second, 111, "third")

    println(JacksMapper.writeValueAsString(third))
}
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant