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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T09:36:57+00:00 2026-06-18T09:36:57+00:00

How can i parse this one with GSON? Because this one is starting with

  • 0

How can i parse this one with GSON? Because this one is starting with a number “1” and “2”. I have made an object for the one starting with entity_id and that is working when i removed the outside json (with the “1” in it).

But I want to parse this whole bunch of code at ones. So what should I do to parse the “1” and “2” also? Something like String id and List innerobjects?

{
  "1": {
    "entity_id": "1",
    "status": "complete",
    "coupon_code": null,
    "shipping_description": "Flat Rate - Fixed",
    "customer_id": null,
    "base_discount_amount": "0.0000",
    "base_grand_total": "3422.3800",
    "base_shipping_amount": "90.0000",
    "base_shipping_tax_amount": "0.0000",
    "base_subtotal": "3332.3800",
    "base_tax_amount": "0.0000",
    "base_total_paid": "3422.3800",
    "base_total_refunded": null,
    "discount_amount": "0.0000",
    "grand_total": "3422.3700",
    "shipping_amount": "90.0000",
    "shipping_tax_amount": "0.0000",
    "store_to_order_rate": "1.0000",
    "subtotal": "3332.3700",
    "tax_amount": "0.0000",
    "total_paid": "3422.3700",
    "total_refunded": null,
    "base_shipping_discount_amount": "0.0000",
    "base_subtotal_incl_tax": "3332.3800",
    "base_total_due": "0.0000",
    "shipping_discount_amount": "0.0000",
    "subtotal_incl_tax": "3332.3700",
    "total_due": "0.0000",
    "increment_id": "100000001",
    "base_currency_code": "EUR",
    "discount_description": null,
    "remote_ip": "472.15.1.83",
    "store_currency_code": "EUR",
    "store_name": "Main Website\nMain Website Store\nDefault Store View",
    "created_at": "2012-08-10 09:37:17",
    "shipping_incl_tax": "90.0000",
    "payment_method": "checkmo",
    "gift_message_from": null,
    "gift_message_to": null,
    "gift_message_body": null,
    "tax_name": null,
    "tax_rate": null,
  },
  "2": {
    "entity_id": "2",
    "status": "pending",
    "coupon_code": null,
    "shipping_description": "Flat Rate - Fixed",
    "customer_id": null,
    "base_discount_amount": "0.0000",
    "base_grand_total": "1140.7900",
    "base_shipping_amount": "30.0000",
    "base_shipping_tax_amount": "0.0000",
    "base_subtotal": "1110.7900",
    "base_tax_amount": "0.0000",
    "base_total_paid": null,
    "base_total_refunded": null,
    "discount_amount": "0.0000",
    "grand_total": "1140.7900",
    "shipping_amount": "30.0000",
    "shipping_tax_amount": "0.0000",
    "store_to_order_rate": "1.0000",
    "subtotal": "1110.7900",
    "tax_amount": "0.0000",
    "total_paid": null,
    "total_refunded": null,
    "base_shipping_discount_amount": "0.0000",
    "base_subtotal_incl_tax": "1110.7900",
    "base_total_due": null,
    "shipping_discount_amount": "0.0000",
    "subtotal_incl_tax": "1110.7900",
    "total_due": null,
    "increment_id": "100000002",
    "base_currency_code": "EUR",
    "discount_description": null,
    "remote_ip": "182.11.7.52",
    "store_currency_code": "EUR",
    "store_name": "Main Website\nMain Website Store\nDefault Store View",
    "created_at": "2012-08-15 15:19:35",
    "shipping_incl_tax": "30.0000",
    "payment_method": "checkmo",
    "gift_message_from": null,
    "gift_message_to": null,
    "gift_message_body": null,
    "tax_name": null,
    "tax_rate": null,
  }
}
  • 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-18T09:36:58+00:00Added an answer on June 18, 2026 at 9:36 am

    Use a Map for odd "1", "2", ... objects:

    Map<String, Order> map = gson.fromJson(json, Map.class);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there any tool that can parse/conver xml files to this format? I have
I have url, comicsbook.ru/upload/13307036534f50ed2593fa8.jpg, but i can't parse this, NOT ONE of this methods
I currently have a function that looks like this: public void AnimateLayoutTransform(object ControlToAnimate) {
Can some one guide me how to parse this Xml type string ? <data>
Can anyone explain a parse error like this one: Method 'get_EnableCdn' in type 'System.Web.UI.ScriptManager'
How can i parse this XML with C# WP7 to different lists for binding
Can not parse json using this var res = eval('(' + response + ')');
How can I parse URL queries with a system like this. For Example something
I can't figure out why I get this error: Parse error: syntax error, unexpected
This is only tangentially a programming question. Where can I find a simple-to-parse list

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.