Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7042675
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T02:11:49+00:00 2026-05-28T02:11:49+00:00

I have a string from json data as below:- Order Number : 123i the

  • 0

I have a string from json data as below:-

“Order Number : 123i the prodfuct is hard to found Title Name superman Product Code :ABC01 Number Of Instances :1 Duration : 10.91 Size : 0.0 Product Cost : $10.43 Product Code :HELLO123 Number Of Instances :1 Duration : 0.91 Size : 0.0 Product Cost : $0.0 “

I want to separate the values into an array!

Need help, i am new to jquery, and tried other option’s to!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T02:11:50+00:00Added an answer on May 28, 2026 at 2:11 am

    First you need to format your json string correctly using commas to separate key value pairs, making sure your key names don’t have spaces in them and using double quotes to wrap non-numeric values. For ex:

    {
      Order_Number : "123i the prodfuct is hard to found Title Name superman", 
      Products: [
        { 
          Product_Code : "ABC01",
          Number_Of_Instances : 1,
          Duration: 10.91,
          Size : 0.0,
          Product_Cost : "$10.43"
        },
        { 
          Product_Code : "ABC02",
          Number_Of_Instances : 2,
          Duration: 5.91,
          Size : 0.0,
          Product_Cost : "$5.43"
        }
      ]
    }
    

    Once you have this data in a json string, you can parse it like:

    var data = JSON.parse(jsonString);
    
    var orderNumber = data.Order_Number; // this is your order number
    
    // this is how you iterate through the products in the order
    for(product in data.Products) {
      var code = product.Product_Code;
      var instances = product.Number_Of_Instances;
      // and so on..
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a JSON string below: { data: [ { //data for first },
I have a json string saved in my db. When i retrieve it from
I have an app where I fetch data from server(json) in the form of
I have a web service that returns a raw string of JSON data (sample
I have a query on retrieving data sent as JSON from a JavaScript, inside
I have one view where I read json data. and extract keys from it.
I have a spring action that I am rendering some json from the controller,
I have a string from an email header, like Date: Mon, 27 Oct 2008
I have a string from which I wish to extract a single word, but
HI, I have some string from XML file, and I I want to replace

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.