I want to extract the three variables (friendCount
, pnCount
, and allCount
) out of a string representation of the following Object:
'{"friendCount":5,"pnCount":0,"allCount":5}'
I thought about using a RegEx or similar, but I have no further Idea. The numbers in the string may be between 0 and about 100