Support » Developing with WordPress » How to access this object returned by WP Rest Api?

  • Resolved ioclaudio

    (@ioclaudio)


    Hi,
    calling the WP rest API I have a Json result that contains this object:

    "address_hotel": [
    "a:3:{s:7:\"address\";s:42:\"Via Giuseppe Mazzini, 55, Pisa, PI, Italia\";s:8:\"latitude\";s:17:\"43.71421950000001\";s:9:\"longitude\";s:18:\"10.398955099999966\";}"
    ]

    What kind of object is and how can I access its fields, for example ‘latitude’?

    Thank you very much

    cld

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.