i have string that i need to make custom parser but i am stuck in braces that how can i parse this ….
[TPIN{PrimaryPIN=6152987; IsValidUser=true; }, TPIN{PrimaryPIN=794032; IsValidUser=true; }]
here is two field :
- PrimaryPIN
- IsValidUser
i got idea to get it in array with split but it not a good idea so can you tell me how can i make two array that can give me value of PrimaryPIN and IsValidUser please help me on this. … .
Here’s a simple parser for the
PrimaryPinandIsValidUser: