add JSON encoder.
add examples of encode.
Merge branch 'feature/toJSON' into develop
version bump up.
Merge branch 'develop'

add JSON encoder.