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 8294425
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T14:12:45+00:00 2026-06-08T14:12:45+00:00

I am trying to parse the below mentioned javascript contents <script type=text/javascript> //<![CDATA[ var

  • 0

I am trying to parse the below mentioned javascript contents

<script type="text/javascript">
//<![CDATA[
var catalog = new Catalog({"Data":[{'ID':'rsafl502','GC':'RSAFL502','CT':49,'SU':1875,'DC':'Smoke','NM':'Watery Faux Leather Purse','PR':'Reg $56.00','SL':'$15.00','oSL':true,'RT':'40','CL':[{'E':'Black','L':'Black','V':['#000000']},{'E':'Smoke','L':'Smoke','V':['#383E50']}],'SZ':[{'E':'One Size','L':'One Size'}],'SC':''}
,{'ID':'rsavp500m','GC':'RSAVP500M','CT':49,'SU':1029,'DC':'Navy','NM':'Medium Emergency Bag','PR':'Reg $24.00','SL':'$15.00','oSL':true,'RT':'50','CL':[{'E':'Black','L':'Black','V':['#000000']},{'E':'Navy','L':'Navy','V':['#07194D']},{'E':'Crucian Blue','L':'Crucian Blue','V':['#00b4ee']}],'SZ':[{'E':'M','L':'M'}],'SC':''}
]});
//]]>
</script>

But am not getting how to parse means i want to store the details like ‘NM’, ‘PR’, ‘SL’ into the variable using nodejs. My question is is it possible to parse this using nodejs? If it possible please tell me how to do this. Am new to nodejs. Please help me. Thanks in advance.

  • 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-06-08T14:12:47+00:00Added an answer on June 8, 2026 at 2:12 pm

    If you delete the “new Catalog” string, its a object. You can access it like catalog.Data.ID or catalog.Data.GC,

    for example

    var catalog={Data:{ID: 5, GC: 2}};
    alert(catalog.Data.ID);
    

    will show a message box with “5”

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to parse JSON in JavaScript. If my JSON data looks like below,
I am trying to parse the below Arabic content <type id=14> <data name=title>قافية</data> </type>
I am trying to parse data from the XML below (I shortened the data
I am trying to parse some currency data in xml format. Below code does
I'm new to xml. I'm trying to parse an xml file to extract data
i am trying to parse a text file saved in doc dir below show
I am trying to parse text using pyparsing. My function is shown below. Firstly,
I am trying to parse the below XML in to the Entity through Linq,
Trying to parse an HTML document and extract some elements (any links to text
Trying to parse an iTunes Atom feed with a PHP script. If you visit

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.