fix type is not JSON serializable
Merge pull request #475 from flisky/master

fix type is not JSON serializable