added from_json and to_json functions to Mojo::JSON