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
1

2 Answers 2

1

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

var yourVar = yourString.split(separator, limit)

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(',');

Comments

Your Answer

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.