Dependency.toJson

Returns a JSON representation of the dependency specification.

Simple specifications will be represented as a single specification string (versionSpec), while more complex specifications will be represented as a JSON object with optional "version", "path", "optional" and "default" fields.

struct Dependency
const @safe
Json
toJson
(
bool selections = false
)

Parameters

selections bool

We are serializing dub.selections.json, don't write out optional and default.

Meta