Are you first timer at lazacode.org? Why not join us and start exchange your programming knowledge with everyone. Register today!

API - field key data option

0 votes
21 views
added Jun 28 in API by lcjr Second Warrant Officer (6,120 points)
// const carpark = data?.result?.field_prop_car_parking ?? ''; 
// if the above is not working, try the following one, due to path structure

  const carpark = data?.result?.field_prop_car_parking?.und?.[0]?.value ?? '';

 

Please log in or register to response this reference.

lazacode.org - Malaysia's programming knowledge sharing platform, where everyone can share their finding as reference to others.
...