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

  • Home
  • SEARCH
  • 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 8152391
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T15:42:01+00:00 2026-06-06T15:42:01+00:00

I am using spring 3.0 webservices. It produces a json response. I want to

  • 0

I am using spring 3.0 webservices.
It produces a json response.

I want to generate jsonp response using same webservices.

Please suggest how to customize spring 3.0 webservices json response.

  • 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-06T15:42:02+00:00Added an answer on June 6, 2026 at 3:42 pm

    You can try to integrate Jackson in your project, which has tons of options for JSON serialization. Configuring Jackson is easy:

    <bean
        class="org.springframework.web.servlet.view.ContentNegotiatingViewResolver">
        <property name="order" value="0" />
        <property name="mediaTypes">
            <map>
                <entry key="json" value="application/json" />
            </map>
        </property>
        <property name="defaultViews">
            <list>
                <bean
                    class="org.springframework.web.servlet.view.json.MappingJacksonJsonView" />
            </list>
        </property>
    </bean>
    

    Once you get this working, you can use Jackson’s excellent annotations on your Model objects to configure how they get printed in the JSON, or if they get ignored (@JSONIgnore).

    If you want to go further, you can extend the org.springframework.web.servlet.view.json.MappingJacksonJsonView class with your own, and go nuts.

    Hope this helps.

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

Sidebar

Related Questions

Is it possible to send json and receive json using spring webservices? Thanks Damien
I am using Spring and Maven project. I have Project mit-webservices and mit-util project
I've an application built using Spring 3, Spring webservices 2.0 , JDK 1.6 and
I am writing a Spring Restful webservices application using Spring MVC. I have used
We are currently using Spring MVC to implement REST web services. We now want
I am working on webservices with spring DI. I am using the Eclipse IDE
I want to create Spring web services using JiBX. I already have my Java
We have a Spring web application created using Spring MVC 3.0 In the same
We have a tomcat webapp which provides webservices which are protected using Spring Security.
I'm new using CXF and Spring to make RESTful webservices. This is my problem:

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.