Skip to content

IDEA: assertk-json extension library #280

@seepick

Description

@seepick

hi, very often i am in need of testing some JSON response, whereas i don't care about whitespace and ordering of keys within the JSON (semantic comparison).
there is the JSONAssert library, which can do that. and sometimes i need to "dig into" the JSON, which can be done with json-path.

e.g. transforming JSONAssert.assertEquals(expectedJson, actualJson, jsontMode) into fun Assert<String>.isJsonEquals(expectedJson: String, mode: JsonMode = JsonMode.Strict)

my idea would be to create another artifact, depending on the "assertk-core" library, and simply adding a transitive dependency with such a thin layer making the libs reusable via the fluent assertk assertions.

WDTY?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions