Closed kevsersrca closed 5 years ago
What is unusable about that result, exactly? It looks fine to me. Or am I missing something?
`json:"lighthouse-core/audits/is-on-https.js
| title"`
So it \n
adds. therefore return error.
There is no line break when I paste your input into JSON to Go:
type AutoGenerated struct {
LighthouseCoreAuditsIsOnHTTPSJsTitle []string `json:"lighthouse-core/audits/is-on-https.js | title"`
}
(That's a direct copy+paste)
Probably has something to do with your system.
I tried json-to-go with the chrome-lighthouse json file. But struct names are not cleared, so I can't use them. Therefore I can't unmarshall json.
Example:
result: