Message
General information
Fórum:
Visual FoxPro
Category:
Programação, sintaxe e comandos
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows 7
Database:
Visual FoxPro
Miscellaneous
ID da thread:
01647020
ID da mensagem:
01647024
Views:
68
>>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
Responder
Mapa
View