@ioclaudio wrote:
Hi,
I’m looking for a suggestion on how to manage these data that I get, in a Ionic4 app, from a Wordpress site, calling the WP Rest API.The web services return a JSON like this:
{ "id": 230, "title": "Tuscany rentals", "address_transport": [ "a:3:{s:7:\"address\";s:65:\"Piazzale Michelangelo, Piazzale Michelangelo, Firenze, FI, Italia\";s:8:\"latitude\";s:10:\"43.7629314\";s:9:\"longitude\";s:18:\"11.265056100000038\";}" ] },
The problem is the field “address_transport” that has a strange format, that I don’t know how to read.
I’ve understood that that the address_transport item is an array of three elements (a:3), the first is “address” that is log 7 characters (s:7) and its value is “Piazzale Michelangelo, Piazzale Michelangelo, Firenze, FI, Italia” that has 65 characters (s:65).
Do you have any suggestions on how to read data like these and what is the name of this strange notation?
Thank you very much
Claudio
Posts: 1
Participants: 1