嗨,我从 facebook api 得到的字符串为:
family = (
{relationship = brother;uid = 100767;},
relationship = cousin;uid = 10900;},
{name = myaunt;relationship = aunt;},
{ name = krish; relationship = uncle;}
);
如何从中获取一系列关系和uid?
我得到的结果是:
relation = (
brother,
cousin,
aunt,
uncle
)
如何处理这个字符串?