use encode_json since Object-Oriented Mojo::JSON API is DEPRECATED
Merge pull request #7 from fayland/master

use encode_json since Object-Oriented Mojo::JSON API is DEPRECATED