Marco

public class Marco

Marco utilities.

  • Returns a minified copy of the value.

    This does not change the original value. All insignificant whitespaces will be removed.

    Declaration

    Swift

    public static func minify(_ value: MarcoValue) -> MarcoValue
  • Prettifies the value.

    This does not change the original value. All existing formatting will be removed.

    Declaration

    Swift

    public static func prettify(_ value: MarcoValue, reorderKeys: Bool = true) -> MarcoValue
  • Returns a JSON string for the given Marco object.

    Declaration

    Swift

    public static func toJsonString(_ value: MarcoValue) -> String
  • Returns a Marco object got from the parsed JSON representation.

    Declaration

    Swift

    public static func fromJson(object json: Any) -> MarcoDocument
  • Returns a Marco configuration object from the parsed JSON representation.

    Declaration

    Swift

    public static func configFromJson(object json: [String : Any]) -> MarcoDocument