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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T18:42:37+00:00 2026-05-23T18:42:37+00:00

What is the best way to render JSON for an ajax call using Sitecore?

  • 0

What is the best way to render JSON for an ajax call using Sitecore? Google looks like it turns up a few posts noting how to serialize Sitecore objects which isn’t hard.

Will returning JSON to a client-side ajax call require a new layout with a device with query params ‘device=json’ and a sublayout attached which returns serialized JSON?

Is it better to create a .aspx page which simply accesses Sitecore and returns serialized results?

Simply looking for a way to output JSON requested by a client-side AJAX call easily with Sitecore.

  • 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-23T18:42:38+00:00Added an answer on May 23, 2026 at 6:42 pm

    You’ve probably seen it before, but the solution you describe worked for this fellah. Setup correctly in theory you would just need one Layout which serializes the context item.
    Filtering out page content with AJAX in Sitecore

    If you don’t need or want to provide the option of serializing ALL content, or if perhaps you need to perform some business logic or other processing, you might look into MVC-enabling your solution and creating MVC actions to serve your JSON. If setup correctly, you can still have access to some Sitecore context values (e.g. Database and Language). c.f. Sitecore and ASP.net MVC and http://www.sitecore.net/Community/Technical-Blogs/John-West-Sitecore-Blog/Posts/2010/10/Sitecore-MVC-Crash-Course.aspx

    ASP.NET MVC is a great way to serve JSON.

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

Sidebar

Related Questions

What would be the best way to render list of many items (like comments
I'm trying to render a flat Json obect into a tree like <ul> using
I am trying to come up with the best way to render some hierarchical
What would be the best way to implement, store, and render spherical worlds, such
This is a simple question. What is the best way to render a boolean
I need to render JSON data in my JSPs for some AJAX requests. I'd
What is the best way to render to a UIComponent which hasn't been added
What is the best way to render a data object into html? Take into
What's the best way to render a treeview on JSP? I need it for
What is the best way if i would like to only return :id and

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.