Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Help with string parsing into array
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows 7
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01647020
Message ID:
01647024
Views:
66
>>Hi
>>I need to transform a string with content similar to
>>{"ID": "0050", "Action": "Welding"},{"ID": "0040", "Action": "Bending"},{"ID": "0020", "Action": "Laser"}
>>
>>into an array ( two dimensions, 1 for ID and 2 for Action ), In the above case, that would generate:
>>Array[1,1]="0050"
>>Array[1,2]="Welding"
>>Array[2,1]="0040"
>>Array[2,2]="Bending"
>>Array[3,1]="0020"
>>Array[3,2]="Laser"
>>
>>Any ideas how to achieve this?
>>
>>Many thanks
>>Jaime
>
>Try to google: "Parse JSON vfp"

Thanks, qsfoxjson was my ticket. Forgot about them, excellent functions and easy to use.
Why do programs stop working correctly as soon as you leave the Fox?
Previous
Reply
Map
View

Click here to load this message in the networking platform