Corrected small typo

In the code snippet the `fun` should be `validate` and the `mod` should be `validate_json`