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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T07:40:49+00:00 2026-06-11T07:40:49+00:00

Assuming the following JSON structure: { \is_something\: false, \name\: \Some Name\, \subtype\: { \total\:

  • 0

Assuming the following JSON structure:

{
    \"is_something\": false,
    \"name\": \"Some Name\",
    \"subtype\": {
        \"total\": 0.0
    }
}

Instead of creating two autobean interfaces (one for the whole structure and one for the subtype), I would like to have one which contains all the properties.

public interface ExampleAutoBean {
    @PropertyName("is_something")
    boolean isSomething();

    String getName();

    @PropertyName("subtype.total")
    double getTotal();
}

So, the getTotal() method is expected to contain the total property of the nested subtype in the JSON structure. I can’t find any documentation in the source code or online which states whether or not this is possible.

Thanks in advance!

  • 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-11T07:40:50+00:00Added an answer on June 11, 2026 at 7:40 am

    Nope: AutoBeans are designed to be a mapping from the JSON structure to Java interfaces, plus or minus collections like List, Set, and Map and String encodings of a long or a Date. Additionally, it is legal to have json like the following:

    {
        "some.property.with.dots" : "abcd",
        "name" : "wxyz"
    }
    

    If the . character could only be used for traversing into sub-objects, there would be no way to have a getter for the first property.

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

Sidebar

Related Questions

Assuming the following MySQL table structure, why do the two following queries produce different
Assuming I have the following two JQuery functions - The first, which works: $(#myLink_931).click(function
Assuming the following view model definition: public class MyObject { public string Name {
Assuming the following structure, I need to find if there are cases where there's
Assuming the following directory structure, htdocs/ images/ css/ .htaccess system/ index.php ... I would
Assuming I have the following JSON Object: { type: Bands, Artists: [{ profile: {
Assuming the following domain entity : public enum Role { User = 0, Moderator
Assuming the following hypothetical inheritance hierarchy: public interface IA { int ID { get;
assuming the following html (minus the comments and nbsp; etc that xQuery wont process
assuming I have the following array: views = [ { :user_id => 1, :viewed_at

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.