1

I have JSON with dynamic data.

How I can create array address from data returned by JSON?

 var json= JSON.parse(result);
 var address = json.address;
 console.log(address) :
 2.26095199584961,2.2635269165039067,2.2908210754394536,2.2951126098632817
asked Apr 13, 2022 at 14:30
1

2 Answers 2

1

Assuming this is some JavaScript you're talking about, you might consider using:

var yourVar = yourString.split(separator, limit)

answered Apr 13, 2022 at 14:54
Sign up to request clarification or add additional context in comments.

Comments

0

Based on your input, use split function to do the same

let addressArra = address.split(',');
answered Sep 23, 2022 at 12:48

Comments

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.