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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T22:32:02+00:00 2026-05-16T22:32:02+00:00

I noticed that JSON files don’t have null values for certain properties, because they

  • 0

I noticed that JSON files don’t have null values for certain properties, because they don’t list the property at all… this, compared to XML, creates me lot of problems …

I wonder if there is any function to find a property inside JSON…

I imagine something in jQuery like

$(data).find("myPropertyIneed").val();

instead of data.MainCategory.otherStuff.myPropertyIneed

  • 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-16T22:32:02+00:00Added an answer on May 16, 2026 at 10:32 pm

    Your problem is not typical for JSON at all, as it does actually have a null value that can be used on properties. Your problem is specific to whatever you use to create the data, as it on purpose leaves out properties with null values.

    If you want the null values, you should first look into why they are left out in the first place.

    Your problem with finding properties is not related to left out null values, or JSON at all, as you obviously already has parsed the data into Javascript object judging from how you access it.

    If you want a property, you should already know it’s path. Looking all over for a property doesn’t make sense, as for example “data.car.loadingCapacity.length” and “data.hand.middlefinger.length” have completely different meanings.

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

Sidebar

Related Questions

I have a project containing cocos2d framework, sharekit, asi & json. I've noticed that
I noticed that some arrays don't have a comma after the last item. I
I noticed that I'm using the Element_Checkbox and Element_Text together a lot in my
I noticed that IE9 renders downsized images in a very low quality: if I
I noticed that tail +2 is supported in Solaris ksh, but in Red Hat
I noticed that GoogleToolbarNotifier.exe cannot be killed from Process Explorer. It returns Access Denied.
I have a LAMP server (Quad Core Debian with 4GB RAM, Apache 2.2 and
I developed a simple plugin to sent request to a JSON text file, retrieve
I read this article here that talks about progressive enhancement for javascript and the
I posted this once, but I was a bit too vague in my information,

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.