JSONStorage.serialiseInto

Formats an object-type JSON storage into an output range sink.

Top-level keys are sorted as per the passed KeyOrderStrategy. This overload is specialised for KeyOrderStrategy.inGivenOrder.

  1. void serialiseInto(Sink sink, string[] givenOrder)
    struct JSONStorage
    @safe
    void
    serialiseInto
    (
    auto ref Sink sink
    ,
    const string[] givenOrder
    )
  2. void serialiseInto(Sink sink)

Parameters

strategy

Order strategy in which to sort top-level keys.

sink Sink

Output sink to fill with formatted output.

givenOrder string[]

The order in which object-type keys should be listed in the output file. Non-existent keys are represented as empty. Not specified keys are omitted.

Meta