isJson function

Matcher isJson(
  1. dynamic object,
  2. [int limit = 100]
)

Matches if the given string json-decodes to object

Implementation

Matcher isJson(object, [int limit = 100]) =>
    ProcessingMatcher(equals(object, limit), (v) => json.decode(v));