Better HN
top
new
best
ask
show
jobs
Log in
Sign up
fsdffs
5 karma · joined Jul 31, 2015 (11y ago) · 1 submissions
Submissions
comment 11y ago ·
link
·
parent
If you add a wrapper, maybe use a simple heuristic to switch between JSON.parse and fetch. Even something as simple as checking the length of the string may cut it: lower than X? use JSON.parse . Higher? Use fetch.