json_matcher

JSON Matchers for unit tests: encodesToJson() checks if the value encodes to expected JSON, isJson() checks if the string is expected JSON.


Keywords
dart, json, matcher, testing
License
MIT

Documentation

JSON Matchers for unit tests

Provides:

  • encodesToJson() matcher which checks if the value encodes to expected JSON
  • isJson() matcher which checks if the string is expected JSON

See the example for more details.