Add log json & check if result is null
Update attrubute according to backend