- back to static methods
- use PHP's JSON options for encoding (also second parameter to
  `Json::encode()`
- remove `JsonException`, throw `InvalidArgumentException` instead on error
- rename `isJson()` to `isValidJson()`