Skip to content

Documentation is sparse (Is this NewtonSoft only?) #70

@rklec

Description

@rklec

In contrast to the main FluentAssertions library, the documentation is not a lot here.

I was coming here with the question: Can I use this to just de-serialize some JSON string and then just check whether that is "equivalent" to another object I want to compare it with, or, say, another string?

Now reading the short Readme I have more questions:

  • The lib is named FluentAssertions.Json, however the description says these are "NewtonSoft.Json extensions for FluentAssertions". So, especially given C# now has it's own internal JSON (de)serializer, is this library
    • for me, if I develop something with NewtonSoft? or
    • is it for me, if I have some JSON and want to compare it.
  • If the first case is true, and this is only usable with NewtonSoft, then why is not it named FluentAssertions.NewtonSoft?
  • The examples using JToken, which seems obligatory (is it?), also seem to make me tend guess it is more about case 1, i.e. a NewtonSoft-only extension.

IMHO, for beginners, this documentation here should be improved or maybe the name should be adjusted, to clarify this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions