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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T06:30:19+00:00 2026-06-06T06:30:19+00:00

I am using Neo4j and ExtJS in my application. One good thing is that

  • 0

I am using Neo4j and ExtJS in my application.

One good thing is that both handle JSON with array structure.

Neo4j returns and ExtJS can consume JSON like this:

{
  columns: ["name", "age"],
  data: [
    ["Peter", 34],
    ["Mike", 52]
  ]
}

instead of:

[
  {"name": "Peter", "age" 34},
  {"name": "Mike", "age" 52},
]

However, from my application server’s HTTP API I want people to be able to choose which one of these JSON structures to receive.

So they are both JSON which means the HTTP header should be “Accept”: “application/json”. But how should I allow them to pick either one of the structures? Should they set a header or a query param? What is best practice?

  • 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-06T06:30:20+00:00Added an answer on June 6, 2026 at 6:30 am

    I think that a simple param in the request would be enough.

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

Sidebar

Related Questions

I'm using Spring Data, Neo4j and Jackson to serve a JSON API. I have
I am using Neo4j with Lucene indexing, which works pretty good with nodes, maybe
This is how you can sort (order) results from Neo4j graph using Gremlin: g.v(id).out('knows').sort{it.name}
I've been using Neo4j for a little while now and have an app up
Is anybody using Neo4j with the REST API in production? I've been looking at
I'm using Spring data neo4j 2.1.0.BUILD-SNAPSHOT and Neo4j 1.6.1 server. I have a Friendship
Is there a way to iterate through every node in a neo4j database using
I'm using the Neography gem to interact with a Neo4j database through the REST
using this http://bl.ocks.org/950642 we can see how to add images to nodes, the question
I have an application where users can select a variety of interests from around

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.