github.com/hashicorp/hcl/v2@v2.20.0/json/doc.go (about)

     1  // Copyright (c) HashiCorp, Inc.
     2  // SPDX-License-Identifier: MPL-2.0
     3  
     4  // Package json is the JSON parser for HCL. It parses JSON files and returns
     5  // implementations of the core HCL structural interfaces in terms of the
     6  // JSON data inside.
     7  //
     8  // This is not a generic JSON parser. Instead, it deals with the mapping from
     9  // the JSON information model to the HCL information model, using a number
    10  // of hard-coded structural conventions.
    11  //
    12  // In most cases applications will not import this package directly, but will
    13  // instead access its functionality indirectly through functions in the main
    14  // "hcl" package and in the "hclparse" package.
    15  package json