using assoc instead of stdclass for json_decode for fb counter