I'm trying to retrieve one value from a nested JSON
with key.
My JSON
structure is below:
If I try:
puts person_id["name"]
It does work fine, but then if I try to get the phone value as:
person_id.phone[0].["value"]
It doesn't work.
How can I properly access the phone value
? Especially when primary
field is true
?
I tried this but no succcess. Thanks in advance.