79295335

Date: 2024-12-19 19:03:35
Score: 1.5
Natty:
Report link

From https://pkg.go.dev/encoding/json#Unmarshal:

To unmarshal JSON into an interface value, Unmarshal stores one of these in the interface value:

bool, for JSON booleans
float64, for JSON numbers
string, for JSON strings
[]interface{}, for JSON arrays
map[string]interface{}, for JSON objects
nil for JSON null

These are the types you need to type-assert against.

Reasons:
  • Probably link only (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: RecursionError