Makes the json converter compatible with every kinds of type, even scalars.
Merge pull request #121 from sukei/json

Makes the json converter compatible with every kinds of types.