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

  • Home
  • SEARCH
  • 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 8790091
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T22:33:45+00:00 2026-06-13T22:33:45+00:00

I got json[] from UI. I have to convert it into Json object how

  • 0

I got json[] from UI. I have to convert it into Json object how can I convert it with gson. An object which is received is like that:

 [{"name":"name","value":"value"},{"name":"first","value":"100"},{"name":"hor","value":"95"},{"name":"conf","value":"95"}],[{"name":"vaRType","value":"INCRE"},{"name":"per","value":"100"},{"name":"hor","value":"95"},{"name":"conf","value":"95"}]

I used JsonObject obj = new JsoParser().parse(jsonStrnig).getAsJsonObject();
but it throws an exception.

  • 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-13T22:33:46+00:00Added an answer on June 13, 2026 at 10:33 pm

    Your JSON should be the following as currently it’s invalid…

    [
        [
            {
                "name": "name",
                "value": "value"
            },
            {
                "name": "first",
                "value": "100"
            },
            {
                "name": "hor",
                "value": "95"
            },
            {
                "name": "conf",
                "value": "95"
            }
        ],
        [
            {
                "name": "vaRType",
                "value": "INCRE"
            },
            {
                "name": "per",
                "value": "100"
            },
            {
                "name": "hor",
                "value": "95"
            },
            {
                "name": "conf",
                "value": "95"
            }
        ]
    ]
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've got a JSON value that has been converted from a JavaScript object using
I have a list of places in listview which i got from parsing JSON.
So i have this json I got from a previous query: {HUID:1,UIDS:1,2,3,name:home,type:page,cat_id:home} I print
I have a search that returns JSON, which I then transform into a HTML
I have a NSDictionary that contains data converted from json data, like {message_id:21} .
I got this JSON output from Ripe. [ {name=>organisation, value=>ORG-MI1-RIPE}, {name=>org-name, value=>Mira Internetsolutions ApS},
I have got a big JSON object (from Google Feed API) and a URL
IS there any way so that i can convert any DOM object into HTML
(I am using json with PHP) Hi i have got a url, from some
I got the JSON from apple like this { original-purchase-date-pst = 2012-06-28 02:46:02 America/Los_Angeles;

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.