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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T02:07:49+00:00 2026-06-13T02:07:49+00:00

{: attachment-2,: attachment-1} I am getting this JSON-encoded string (or an oher format… let

  • 0
{"": "attachment-2","": "attachment-1"}

I am getting this JSON-encoded string (or an oher format… let me know) from parsing a mail and I can not change it. How can I decode it?

  • 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-13T02:07:50+00:00Added an answer on June 13, 2026 at 2:07 am

    This JSON response is invalid as @ThiefMaster mentioned, because JSON doesn’t support duplicated keys.

    You should contact the service you’re trying to request this response from.

    In case you have a valid JSON response you can decode it using the json_decode function
    which returns an object or an array (depends on the second parameter);

    For example: (Object)

    $json_string = '{"keyOne": "attachment-2","keyTwo": "attachment-1"}';
    $decoded = json_decode($json_string);
    
    print $obj->keyOne; //attachment-2
    print $obj->keyTwo; //attachment-1
    

    Another option is to write your own decoder function.

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

Sidebar

Related Questions

We were getting targeting IDs from Facebook from this location: http://developers.facebook.com/attachment/targeting_ids.json Unfortunately it is
I'm sending a simple mail with attachment using SmtpClient but I get this error:
Having a little trouble in getting image attachment urls in wordpress. This is my
I'm getting started with Paperclip and can't figure out something: why isn't this form
Hello guys im getting This error please see the attachment >> Index and count
I am developing a web application using Java and keep getting this error in
I have a List defined like this : public List<string> AttachmentURLS; I am adding
i am using System.Net.Mail for sending mail in asp.net.. how to delete attachment file
using rails 2.3.8. I'm getting this: [ [0] 0, [1] { name => Section,
I don't totally understand how all this works, but I'm getting this error: Fatal

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.