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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T03:23:14+00:00 2026-05-26T03:23:14+00:00

When performing a getJSON function, and I want to send some data to the

  • 0

When performing a getJSON function, and I want to send some data to the server (I’m using a java Stripes framework), I was jut wondering, what datatype will it be?

e.g.

$.getJSON("/tictactoe/get_next_move",
   {board: displayedBoardArray},
   function(data) {
   var json = data;
}

What is the type of board if I want to retrieve it? displayedBoardArray is a var Array type. After retrieving the board type and printing it out like this:

private String[] board;

public String[] getBoard(){
    return board;
}

public void setBoard(String[]board){
    this.board = board;
}

...
System.out.println("board: " +board); //This retrieved a null
...

Is String[] a wrong datatype?

  • 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-05-26T03:23:15+00:00Added an answer on May 26, 2026 at 3:23 am

    I’m going to chime in only because better people than me have not yet. Nothing gets good answers quicker than someone trying to one-up someone else. 😉

    What form does displayedBoardArray take? If it’s actually an object containing key:value pairs, it should come into the server as a series of GET parameters and values. If it’s just a raw JavaScript array, I don’t think you can do that.

    In general, though, once you are sending valid data to the server, it will come in as GET parameter(s) which you will grab using some sort of method. I couldn’t say if your Stripes method is doing that. Again, generally speaking, you can theoretically have a method that will create an array, or a method that will create a string (with comma separations or similar). I guess it depends on the method that’s grabbing the GET parameter values.

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

Sidebar

Related Questions

I am performing some test on sql server and I want to get the
I am performing data changes on multiple databases, and I want to implement a
I am performing the following AJAX call: $(document).ready(function() { $.getJSON('https://sendgrid.com/api/user.stats.json', { 'api_user': 'me@mydomain.com', 'api_key':
performing a GET in order to send data to an API before a user
I'm performing a data migration and the database I'm using only allows to export
When performing a factor analysis using factanal the usual result is some loadings table
When performing an insert lets say from C# into a SQL Server table (using
Performing user authentication in Java EE / JSF using j_security_check I tried this solution.
i am performing oracle table rollback using rowId: so before each data injection, i
While performing some upcoming maintenance, I'm going to have to redirect all site traffic

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.