Documentation ¶
Overview ¶
The oryx json package support json with c++ style comments. User can use the following APIs:
Unmarshal, directly unmarshal a Reader to object, like json.Unmarshal NewJsonPlusReader, convert the Reader to data stream without comments. NewCommentReader, specified the special comment or tags.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCommentReader ¶
func NewCommentReader(r io.Reader, startMatches, endMatches [][]byte, isComments, requiredMatches []bool) io.Reader
the reader to ignore specified comments or tags.
func NewJsonPlusReader ¶
the reader support c++-style comment,
block: /* comments */ line: // comments
to filter the comment and got pure raw data.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.