Check type before null in FromField json instance