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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T11:01:21+00:00 2026-05-25T11:01:21+00:00

I have a ColdFusion component that will return some JSON data: component { remote

  • 0

I have a ColdFusion component that will return some JSON data:

component
{
    remote function GetPeople() returnformat="json"
    {
        var people = entityLoad("Person");
        return people;
    }
}

Unfortunately, the returned JSON has all the property names in upper case:

[
    {
        FIRSTNAME: "John",
        LASTNAME: "Doe"
    },
    {
        FIRSTNAME: "Jane",
        LASTNAME: "Dover
    }
]

Is there any way to force the framework to return JSON so that the property names are all lower-case (maybe a custom UDF/CFC that someone else has written)?

  • 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-25T11:01:22+00:00Added an answer on May 25, 2026 at 11:01 am

    From http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=functions_s_03.html
    Note: ColdFusion internally represents structure key names using
    all-uppercase characters, and, therefore, serializes the key names to
    all-uppercase JSON representations. Any JavaScript that handles JSON
    representations of ColdFusion structures must use all-uppercase
    structure key names, such as CITY or STATE. You also use the
    all-uppercase names COLUMNS and DATA as the keys for the two arrays
    that represent ColdFusion queries in JSON format.

    If you’re defining the variables yourself, you can use bracket notation (as Jason’s answer shows), but with built-in stuff like ORM I think you’re stuck – unless you want to create your own struct, and clone the ORM version manually, lower-casing each of the keys, but that’s not really a great solution. :/

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

Sidebar

Related Questions

I have been using plain forms and input fields in coldfusion for some time
I have a C# app that makes a call out to a cold fusion
I think I may have some confusion about the domain/service layer separation. In my
I got the code from here the Code is not working, I have the
I have seen a lot of questions here regarding the Facebook Graph API but
I have installed Django, Apache2 and even mod_wsgi. With a project, I have Django
Say I have a = [1,2,3] b = [foo(x) for x in a] Now
I have one Main class and VOCollection Class. in main class there is a
I'm developing an application for transferring databases and directories of user-uploaded images/documents from our
I've been working with the MVC pattern for a while now, but I honestly

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.