github.com/shogo82148/std@v1.22.1-0.20240327122250-4e474527810c/encoding/json/scanner.go (about) 1 // Copyright 2010 The Go Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 package json 6 7 // Validは、dataが有効なJSONエンコーディングであるかどうかを報告します。 8 func Valid(data []byte) bool 9 10 // SyntaxErrorは、JSON構文エラーの説明です。 11 // JSONを解析できない場合、[Unmarshal] はSyntaxErrorを返します。 12 type SyntaxError struct { 13 msg string 14 Offset int64 15 } 16 17 func (e *SyntaxError) Error() string