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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T15:05:31+00:00 2026-05-28T15:05:31+00:00

How can I decode this JSON String which has been received as a parameter

  • 0

How can I decode this JSON String which has been received as a parameter via the ajax call. This String is basically a Javascript Array which has been passed using JSON.stringify.

The format received at my Java End is something like this.

%5B%22Name%22%2C%22Vivek%22%2C%

how can i decode this String so that I can create a JSONArray from it using

JSONArray.fromObject

because passing the above mentioned format throws an error

  • 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-28T15:05:32+00:00Added an answer on May 28, 2026 at 3:05 pm

    It looks like it is URL encoded. Try decoding it before parsing.

    String decodedString = java.net.URLDecoder.decode("%5B%22Name%22%2C%22Vivek%22%2C%", "UTF-8");
    JSONArray json = new JSONArray(decodedString);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I can't seem to decode this base64 string which is in the footer of
I have a gzipped base64 JSON string, after converting this string json_decode() can't decode
Possible Duplicate: Can't decode JSON string in php I'm at my wits end here,
I am getting a JSON string which has a \r character somewhere e.g. {data:foo
this article suggests you can use Color c = Color.decode(FF0096); however this understandably throws
Do you know of any .NET library which can decode several types of audio
I'm looking for a method in which I can decode and encode text to
How can I decode a json response in C#?
If we can't decode the MD5 hash string, then what is the purpose of
A JSON string is sent via a HTTP request to my webservice, it looks

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.