You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: ids.go
    path of file: ./repos/gonic/server/ctrlsubsonic/specid
    
    the code of the file until where you have to start completion: package specid

// this package is at such a high level in the hierarchy because
// it's used by both `server/db` (for now) and `server/ctrlsubsonic`

import (
	"encoding/json"
	"errors"
	"fmt"
	"strco
    
func (i *ID) UnmarshalJSON(data []byte) error {
	if len(data) <= 2 {
		return fmt.Errorf("too short: %w", ErrBadJSON)
	}
	id, err := New(string(data[1 : len(data)-1])) // Strip quotes
	if err == nil {
		*i = id
	}
	return err
}