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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T13:41:37+00:00 2026-05-15T13:41:37+00:00

{ MESSAGE = LoginWelcomeBackMessage; SUCCESS = 1; USER = { AcceptAllFriendRequests = 0; CreateDate

  • 0
{
MESSAGE = LoginWelcomeBackMessage;
SUCCESS = 1;
USER =     {
    AcceptAllFriendRequests = 0;
    CreateDate = "June, 07 2010 00:00:00";
    DayOfBirth = "April, 24 1974 00:00:00";
    UserName = "Erik Madsen";
};
}

My CFC defines all the columns in my database table, but when a column is NULL, the field isn’t returned as a property in the JSON? The example above should have PersonalInfo = “”; Is there a way to force it to return an empty string?

  • 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-15T13:41:39+00:00Added an answer on May 15, 2026 at 1:41 pm

    Simply leaving the property out is probably closer to null than an empty string in most circumstances. if you want an empty string you should return an empty string. how a null value is treated depends on your serializer.

    In javascript, the official implementation handles it quite fine:

    var a = { b: null };
    console.log( JSON.stringify(a) ); // logs '{"b":null}'
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Error message doesn't display on mysql connect failure if( ! $this->remote_connection_id = @mysql_connect($vars['hostname'], $vars['username'],
A message class: case class Message(username:String, content:String) A message list: val list = List(
Error message : svn: Can't open file '/Users/username/Projects/myproject/trunk/project/.svn/text-base/filetoupdate.h.svn-base': No such file or directory Question:
class Message(models.Model): date = models.DateField() user = models.ForeignKey(UserEx) groups = models.ManyToManyField(Group) main_category = models.ForeignKey(MainCategories)
t_message msg_id message username date_post url t_comment com_id comment msg_id username date_comment url How
class Message(db.Model): user = db.ReferenceProperty(User, required=True, collection_name='Message_set') text = db.TextProperty(required=True) I tried this but
A message source shows User-Agent: L&H_Reader What news reader is this?
message and user. my message belongs_to user and user has_many messages. in one of
I have a message list having members: Text = m.Text, User = m.User, Date
message ------------ 01d,2s3,1wee (nvarchar) 01,32,32154, (nvarchar) df,g,d, (nvarchar) dd,12,2 (nvarchar) I dont know how

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.