Strict JSON parsing based on the Go encoding/json package