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

The Archive Base Latest Questions

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

I want to create a request for JSON-RPC with three parameters – String, Integer

  • 0

I want to create a request for JSON-RPC with three parameters – String, Integer and my own object. Request should look like this:

{"method":"MyMethod", "params":["text", 123, {"name": "any text", "num": 15}], "id":1}

Ideally, I would like to create an AutoBean like this (but it does not work):

interface JsonRpcRequest {  

    String getJsonrpc();
    void setJsonrpc(String value);

    String getMethod();
    void setMethod(String value);

    List<Object> getParams(); // ERROR: Type Object may not be used
    void setParams(List<Object> params); // ERROR: Type Object may not be used

} 

interface JsonRpcRequestFactory extends AutoBeanFactory {

    AutoBean<JsonRpcRequest> jsonRpcRequest();

}

The problem is that the AutoBean framework does not allows the use of List<Object> inside interface.

Is there another way to create a list/array of elements of different based and non-based types?

  • 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-13T20:23:50+00:00Added an answer on June 13, 2026 at 8:23 pm

    No, you simply can’t. AutoBean requires everything to be statically typed: no polymorphism, and no mixed-typed lists of maps.

    You might be interested by RequestFactory’s built-in support for JSON-RPC though.

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

Sidebar

Related Questions

I want to create json object from a string that comes as a response
I want to create a JSON array like this: var ddBasic = [ {
I want to create a json object in jquery and process it in jsp
I'm currently trying to create an object to be used in a JSON request,
I want to create a HTTP request from a specific port using C on
i want create a custom json data from the mssql 2008 results so that
I want to create a global option that when a REST call contains &format=json
I want to simply save the token parameter I receive from the JSON request,
I want to create a special json format for all actions that return a
The .NET Dictionary<TKey, TValue> object allows assignment of key/values like so: Dictionary<string, string> dict

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.