detailsJson is array type
rename $detailsJson to $otherDetails