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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T03:41:03+00:00 2026-05-16T03:41:03+00:00

I think this question is like clay pidgeon shooting.. pull… bang! .. shot down..

  • 0

I think this question is like clay pidgeon shooting.. “pull… bang!” .. shot down.. but nevertheless, it’s worth asking I believe.

Lots of JS frameworks etc use JSON these days, and for good reason I know. The classic question is “where to transform the data to JSON”.

I understand that at some point in the pipeline, you have to convert the data to JSON, be it in the data access layer (I am looking at JSON.NET) or I believe in .NET 4.x there are methods to output/serialize as JSON.

So the question is:
Is it really a bad idea to contemplate a SQL function to output as JSON?

Qualifier:
I understand trying to output 1000’s of rows like that isn’t a good idea – in fact not really a good idea for web apps either way unless you really have to.
For my requirement, I need possibly 100 rows at a time…

  • 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-16T03:41:03+00:00Added an answer on May 16, 2026 at 3:41 am

    The answer really is: it depends.

    If your application is a small one that doesn’t receive much use, then by all means do it in the database. The thing to bear in mind though is, what happens when your application is being used by 10x as many users in 12 months time?

    If it makes it quick, simple and easy to implement JSON encoding in your stored procedures, rather than in your web code and allows you to get your app out and in use, then that’s clearly the way to go. That said, it really doesn’t take that much work to do it “properly” with solutions that have been suggested in other answers.

    The long and short of it is, take the solution that best fits your current needs, whilst thinking about the impact it’ll have if you need to change it in the future.

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

Sidebar

Related Questions

This seems like a fairly obvious question, but I haven't been able to think
I feel like this is a stupid question, but I can't think of a
You may think this question is like this question asked on StackOverflow earlier. But
I think this question has not to do with programming in general, but nevertheless
Firstly, This might seem like a long question. I don't think it is... The
I am using PrimeFaces p:messages but I think this question applies equally to h:messages
I mostly develop using C#, but I think this question might be suitable for
I'm coming largely from a c++ background, but I think this question applies to
I think this question was already asked, but I couldn't find a solution which
I think this is what the asker of this question is getting at, but

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.