method

ID.UnmarshalJSON

func (id *ID) UnmarshalJSON(encoded []byte) error

Public method ID.UnmarshalJSON from github.com/riducms/ridu/migration/payload.

Source migration/payload/payload.go:37

@param encoded
The encoded value.
@returns
The declared result.

Related types

  • ID

    ID is a normalized Payload document ID. JSON strings are preserved exactly; integer JSON numbers are converted to their exact base-10 spelling so Payload's numeric, UUID, and custom IDs share Ridu's canonical string wire representation without passing through float64.