Summary of the new feature / enhancement
This is specific to dsc resource list and dsc extension list which returns JSONLines where each line is a JSON object. However, there's been some requests to have those commands emit a single JSON object that can be deserialized at once. To not break existing usage, we can add a as-json-array to the supported values. However, this option doesn't make sense for other cases like config and resource which returns a single JSON object.
Proposed technical implementation details (optional)
In the code, we'd have a separate enum for dsc resource/extension list with as-json-array
Summary of the new feature / enhancement
This is specific to
dsc resource listanddsc extension listwhich returns JSONLines where each line is a JSON object. However, there's been some requests to have those commands emit a single JSON object that can be deserialized at once. To not break existing usage, we can add aas-json-arrayto the supported values. However, this option doesn't make sense for other cases likeconfigandresourcewhich returns a single JSON object.Proposed technical implementation details (optional)
In the code, we'd have a separate enum for
dsc resource/extension listwithas-json-array