Fix setFromJson to check if value is specified or not