Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Software Development
Programming
Programming Q&A
Multiple JSON arrays with key
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Skythrust" data-source="post: 477627" data-attributes="member: 87030"><p>Hi all,</p><p></p><p>I was wondering if there is an option to combine 2 arrays with an key;</p><p></p><p>Like; </p><p></p><p>JSON1 = '{"id":"1","name":"John", "age":30}';</p><p>JSON2 = '{"userid":"1","country":"UK"}';</p><p></p><p>JSON1.id = JSON2.userid</p><p></p><p>In that case my output could be (John, 30, UK)</p><p></p><p>Thanks!</p></blockquote><p></p>
[QUOTE="Skythrust, post: 477627, member: 87030"] Hi all, I was wondering if there is an option to combine 2 arrays with an key; Like; JSON1 = '{"id":"1","name":"John", "age":30}'; JSON2 = '{"userid":"1","country":"UK"}'; JSON1.id = JSON2.userid In that case my output could be (John, 30, UK) Thanks! [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Software Development
Programming
Programming Q&A
Multiple JSON arrays with key
Top