github.com/YousefHaggyHeroku/pack@v1.5.5/internal/builder/writer/json.go (about)

     1  package writer
     2  
     3  import (
     4  	"encoding/json"
     5  )
     6  
     7  type JSON struct {
     8  	StructuredFormat
     9  }
    10  
    11  func NewJSON() BuilderWriter {
    12  	return &JSON{
    13  		StructuredFormat: StructuredFormat{
    14  			MarshalFunc: json.Marshal,
    15  		},
    16  	}
    17  }