init if json is null