Documentation
¶
Overview ¶
DigiStratum GoLib - JSON
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Json ¶
type Json struct {
// contains filtered or unexported fields
}
func (*Json) Load ¶
Generic JSON load (into ANY interface) The provided target should be a pointer to where we will dump the decoded JSON result
func (*Json) ToDataValue ¶
Convert the Json source to a dynamic DataValue
type JsonDeserializableIfc ¶
type JsonSerializableIfc ¶
Our own take on JsonSerializable.
Note that this is a weak substitute/attempt to "normalize" JSON support for our own library when we have these available from Go built-in packages:
MarshalJSON() ([]byte, error) // Equivalent of JsonSerializableIfc UnmarshalJSON(value []byte) error // Equivalent of JsonDeserializableIfc
The only difference, really, is []byte vs *string. If we want to seriously support reorienting around strings, then we probably need to support some sort of reflection/deep recursion mechanism that will traverse the structures received properly as with Un|MarshallJSON