Better practice for json parser. Avoid pass null to parseJson(...).