check if json string values are not null before parsing