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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T16:01:17+00:00 2026-06-11T16:01:17+00:00

I am making a JSON request to server using Java. Here is the following

  • 0

I am making a JSON request to server using Java. Here is the following parameters.

{method:'SearchBySearchConfiguration',params:[{{SearchCriteria:'%arriva',
 IsAccountSearch:true,IsContactSearch:false,SearchByName:true,SearchByAddress:false
 CRMTextValues:[], CRMCurrencyValues:[]}]}

I could do this way.

 JSONObject json=new JSONObject();
 json.put("method", "SearchBySearchConfiguration"); 

How do I add the rest of params, in name-value pair to JSON object?

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-11T16:01:19+00:00Added an answer on June 11, 2026 at 4:01 pm
    JSONObject json=new JSONObject();
      json.put("method", "SearchBySearchConfiguration"); 
      JSONArray paramsArr = new JSONArray();
        JSONObject arrobj = new JSONOject();
          arrobj.put("SearchCriteria","%arriva");
          arrobj.put("IsAccountSearch","true");
          arrobj.put("IsContactSearch","false");
          arrobj.put("SearchByName","true");
          arrobj.put("SearchByAddress","false");
          arrobj.put("CRMTextValues",new JSONArray());
          arrobj.put("CRMCurrencyValues",new JSONArray());
        paramsArr.put(arrobj);
      json.put("params",paramsArr);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm making a request to an old server that serves up ill-formed JSON. It's
I’m making requests to my server using jQuery.post() and my server is returning JSON
I have an app making a request to a JSON on a server to
I'm making AJAX calls to a server that sometimes return unparseable JSON. The server
I'm making call to Alfresco Webscripts which return JSON. I do this using GET
I'm making a TCP protocol where an app sends JSON to a server and
I have determined that my JSON, coming from the server, is valid (making the
I'm trying to get request a json object from the server each 10 seconds
On my page I'm making ajax-request to get data from server. The data is
I'm new to iOS development and I'm having trouble making a simple Json POST

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.