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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T11:48:35+00:00 2026-06-10T11:48:35+00:00

The front end recieves the json output in the following format (with a backslash

  • 0

The front end recieves the json output in the following format (with a backslash before the double quote). We didn’t intentionally put the backspace but Primefaces(JSF) does when sending the output to front end. How to parse this and save it in an array using jquery or javascript? We don’t want the backslash added by primefaces at all, if there is way we can do from the server side (Primefaces) please let me know. We can remove the “\” using some function in javascript but then it may remove any backslash if we gave it intentionaly. For example if i am sending double string like \”foo\”

{"topicJSON":"{\"topicBody\":[\"Test10\",\"Test22\",\"Test4\",\"Test11\"]}"}

Server Side

jGenerator.writeFieldName("topicBody");             jGenerator.writeStartArray();                  ...............             jGenerator.close();              context = RequestContext.getCurrentInstance();           
 context.addCallbackParam("topicJSON", out.toString());   
  • 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-10T11:48:36+00:00Added an answer on June 10, 2026 at 11:48 am

    You can use jQuery.parseJSON

    like this

    var newOne = jQuery.parseJSON(yourJsOldVariable);//yourJsOldVariable contains that string you posted
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following front end code: <ajaxToolkit:TabContainer runat=server Height=150px Width=70% ActiveTabIndex=1 OnDemand=true AutoPostBack=false
I need allow registered front end users to add, remove images to image gallery.
As a front end developer, I frequently add code to hide backend devs' error
I have made a front end for a program which test java (foo.class) binary
Having an MS-ACCESS front-end and a MYSQL back-end, what methods are available to distribute
I'm doing some front end development on a hosted e-commerce platform. The system sends
I have a Wordpress Front End Form to Publish/Draft Posts directly from my theme:
I am a front-end developer writing a C# application to export data from an
I work with a front-end developer who writes JSP files. We have a form
I am writing front end app that connects to a DB and downloads any

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.