Check if JSON is not None before using it