FromJsonFunc: return null for null input. fixed code indent style