null is valid json, return undefined

`JSON.parse("null") === null`

Since null is valid we return `undefined` instead, this means you know that it was invalid if it returns `undefined`