It would be great to be able to set the MaxLineLength via a parameter to the CompareJson function. Having it hard-coded to 50 is a reasonable default, but some apps have a lot of horizontal space and don't want to wrap the JSON as frequently.
diff, err := jsonDiff.CompareJSON(json1, json2, nil, false)
I don't know the project well enough to propose an API (Could be a MaxLineLength function parameter, or a settings struct to support more options in a backwards compatible manner). But if someone else suggests a good api, I'm happy to implement this.
It would be great to be able to set the MaxLineLength via a parameter to the
CompareJsonfunction. Having it hard-coded to 50 is a reasonable default, but some apps have a lot of horizontal space and don't want to wrap the JSON as frequently.I don't know the project well enough to propose an API (Could be a MaxLineLength function parameter, or a settings struct to support more options in a backwards compatible manner). But if someone else suggests a good api, I'm happy to implement this.