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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T22:20:19+00:00 2026-06-14T22:20:19+00:00

String (JSON): {title:\Copper\} I have tried $output = str_replace(‘\\’, , $output); but I got

  • 0

String (JSON): {"title":"\"Copper\""}

I have tried

$output = str_replace('\\"', "", $output);

but I got

{"title":""      Copper""}

What I expect

{"title":"Copper"}
  • 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-14T22:20:20+00:00Added an answer on June 14, 2026 at 10:20 pm

    Are you generating the JSON string with your own code (as opposed to getting it from a third-party)? If so, post the code which generates the JSON string and detail what you have done to this point to try and resolve the problem.

    If you don’t have control over the JSON string (and/or the creator of the JSON string will not/cannot fix it), then a hacky way to fix it would be:

    $output = str_replace( '\"' , '' , $output );
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: How to parse JSON in JavaScript I have this JSON string: [{title:
Say I have a JSON string like: {title:aaa,url:bbb,image:{url:ccc,width:100,height:200}, ... My accessor: import com.google.gson.annotations.SerializedName; public
I have the following JSON string: [{\index\:0,\date\:\ 20120030\,\title\:\afsa\}] And I need to get out
I have a JSON string array of objects like this. [{id:4,rank:adm,title:title 1}, {id:2,rank:mod,title:title 2},
I got a valid Json string(at least every onlinevalidator I tried says so) which
I´ve got the following JSON string: {Data:{Recipes:{Recipe_5:{ID:5,TITLE:Spaghetti Bolognese},Recipe_7:{ID:7,TITLE:Wurstel},Recipe_9:{ID:9,TITLE:Schnitzel},Recipe_10:{ID:10,TITLE:null},Recipe_19:{ID:19,TITLE:null},Recipe_20:{ID:20,TITLE:Hundefutter},Recipe_26:{ID:26,TITLE:Apfelstrudel},Recipe_37:{ID:37,TITLE:null},Recipe_38:{ID:38,TITLE:AENDERUNG},Recipe_39:{ID:39,TITLE:null},Recipe_40:{ID:40,TITLE:Schnitzel},Recipe_42:{ID:42,TITLE:Release-Test},Recipe_43:{ID:43,TITLE:Wurstel2}},recipes_id:{ranking_1:9,ranking_2:10,ranking_3:7,ranking_4:5}},Message:null,Code:200} How can I parse it in
I have a JSON string: {responseData: {results: [ {GsearchResultClass: GblogSearch, title:\u003cb\u003eParis Hilton\u003c/b\u003e shops at
I have JSON string that has nested objects with dynamic names that vary each
I get json string from server. Then I parser it using SBJSON library. But
I have a json string like this: { d: { results: [ { __metadata:

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.