github.com/crossplane/upjet@v1.3.0/pkg/resource/json/json.go (about) 1 // SPDX-FileCopyrightText: 2023 The Crossplane Authors <https://crossplane.io> 2 // 3 // SPDX-License-Identifier: Apache-2.0 4 5 package json 6 7 import jsoniter "github.com/json-iterator/go" 8 9 // TFParser is a json parser to marshal/unmarshal using "tf" tag. 10 var TFParser = jsoniter.Config{TagKey: "tf"}.Froze() 11 12 // JSParser is a json parser to marshal/unmarshal using "json" tag. 13 var JSParser = jsoniter.Config{ 14 TagKey: "json", 15 // We need to sort the map keys to get consistent output in tests. 16 SortMapKeys: true, 17 }.Froze()