Closed ArmaanMcleod closed 2 years ago
Extending from #833, we can add JSON support for reading rules and selectors from pipeline. Currently they can be exported to JSON, but not read fron JSON.
We will need to create a an equivalent LanguageExpression deserializer to handle parsing if Selector expressions, which should be similar to the YAML implementation: https://github.com/microsoft/PSRule/blob/main/src/PSRule/Common/YamlConverters.cs#L611.
LanguageExpression
if
@ArmaanMcleod Agreed.
Extending from #833, we can add JSON support for reading rules and selectors from pipeline. Currently they can be exported to JSON, but not read fron JSON.
We will need to create a an equivalent
LanguageExpression
deserializer to handle parsingif
Selector expressions, which should be similar to the YAML implementation: https://github.com/microsoft/PSRule/blob/main/src/PSRule/Common/YamlConverters.cs#L611.