Set tags on maps,arrays when decoding json #1422

This commit is contained in:
Mike Farah
2022-11-15 11:42:31 +11:00
parent cb609a1886
commit fd35530f35
2 changed files with 10 additions and 2 deletions
+8
View File
@@ -78,6 +78,14 @@ const roundTripMultiLineJson = `{
`
var jsonScenarios = []formatScenario{
{
description: "set tags",
skipDoc: true,
input: "[{}]",
expression: `[.. | type]`,
scenarioType: "roundtrip-ndjson",
expected: "[\"!!seq\",\"!!map\"]\n",
},
{
description: "Parse json: simple",
subdescription: "JSON is a subset of yaml, so all you need to do is prettify the output",