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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T00:52:14+00:00 2026-06-14T00:52:14+00:00

I have no idea why my json object is returning undefined. I am not

  • 0

I have no idea why my json object is returning undefined. I am not seeing anything syntactically wrong with it in my JSON tools, but I have a feeling that there must be something wrong with how I am structuring it.

I want to start making a zombie game, but the first step for me is understanding how to pass the data which I have created into the front end. This is where I have been hoping to implement ajax for class, but my console is sending me an error: “undefined”

$(document).ready(function(){
                $.ajax({
                    url: 'dummy_json.json',
                    data : { load : true},
                    type: 'GET',
                    dataType: 'json',
                    timeout: 1000,
                    error: function(jqXHR, textStatus, errorThrown){
                        console.log("HOLY SHIT ZOMBIES!");
                        console.log(textStatus + " is " + errorThrown);
                    },
                    success: function(data){
                        $("body").append(data); // really basic append, more to come.
                    }
                });
            });

And below are the contents of the dummy_json.json file, which contains my hand written zombie quest data. I want to do this from scratch so that I can learn json very well. Eventually I will write the php that extracts this from db and converts to json for the view to consume:

    { id : 0, bulletinquest : {
    items : [{
        zombie0 : {
            "regionoforigin" : "JKL",
            "zombiename" : " - Black",
            "genomeid" : "4778931",
            "reward" : "100",
            "imageName" : "4778931.png",
            "moreinfo" : "To kill a zombie you must destroy the brain."
        },
        zombie1 : {
            "regionoforigin" : "JKL",
            "zombiename" : " - White",
            "genomeid" : "4779436",
            "reward" : "100",
            "imageName" : "4779436.png",
            "moreinfo" : "To kill a zombie you must destroy the brain."
        },
        zombie2 : {
            "regionoforigin" : "JKL",
            "zombiename" : " II - Gray",
            "genomeid" : "6900326",
            "reward" : "45",
            "imageName" : "6900326.png",
            "moreinfo" : "To kill a zombie you must destroy the brain."
        },
        zombie3 : {
            "regionoforigin" : "JKL",
            "zombiename" : " II - White",
            "genomeid" : "7009803",
            "reward" : "45",
            "imageName" : "7009803.png",
            "moreinfo" : "To kill a zombie you must destroy the brain."
        },
        zombie4 : {
            "regionoforigin" : "JKL",
            "zombiename" : " III - Red",
            "genomeid" : "5715837",
            "reward" : "100",
            "imageName" : "5715837.png",
            "moreinfo" : "To kill a zombie you must destroy the brain."
        },
        zombie5 : {
            "regionoforigin" : "GHI",
            "zombiename" : " II - Gray",
            "genomeid" : "6941414",
            "reward" : "45",
            "imageName" : "6941414.png",
            "moreinfo" : "To kill a zombie you must destroy the brain."
        },
        zombie6 : {
            "regionoforigin" : "GHI",
            "zombiename" : " II - White",
            "genomeid" : "6930804",
            "reward" : "45",
            "imageName" : "6930804.png",
            "moreinfo" : "To kill a zombie you must destroy the brain."
        },
        zombie7 : {
            "regionoforigin" : "DEF",
            "zombiename" : " - Blue",
            "genomeid" : "5597904",
            "reward" : "200",
            "imageName" : "5597904.png",
            "moreinfo" : "To kill a zombie you must destroy the brain."
        },
        zombie8 : {
            "regionoforigin" : "DEF",
            "zombiename" : " III (Slow Walker) - Blue",
            "genomeid" : "5715212",
            "reward" : "45",
            "imageName" : "5715212.png",
            "moreinfo" : "To kill a zombie you must destroy the brain."
        },
        zombie9 : {
            "regionoforigin" : "DEF",
            "zombiename" : " III (Slow Walker) - White",
            "genomeid" : "5715328",
            "reward" : "45",
            "imageName" : "5715328.png",
            "moreinfo" : "To kill a zombie you must destroy the brain."
        },
        zombie10 : {
            "regionoforigin" : "DEF",
            "zombiename" : " III (Fast Walker) - White",
            "genomeid" : "6209005",
            "reward" : "200",
            "imageName" : "6209005.png",
            "moreinfo" : "To kill a zombie you must destroy the brain."
        },
        zombie11 : {
            "regionoforigin" : "DEF",
            "zombiename" : " III (Fast Walker) - Blue",
            "genomeid" : "6209286",
            "reward" : "200",
            "imageName" : "6209286.png",
            "moreinfo" : "To kill a zombie you must destroy the brain."
        },
        zombie12 : {
            "regionoforigin" : "DEF",
            "zombiename" : " II - Gray",
            "genomeid" : "6958754",
            "reward" : "300",
            "imageName" : "6958754.png",
            "moreinfo" : "To kill a zombie you must destroy the brain."
        },
        zombie13 : {
            "regionoforigin" : "DEF",
            "zombiename" : " II - White",
            "genomeid" : "6958772",
            "reward" : "300",
            "imageName" : "6958772.png",
            "moreinfo" : "To kill a zombie you must destroy the brain."
        },
        zombie14 : {
            "regionoforigin" : "ABC",
            "zombiename" : " III - Amber Brown",
            "genomeid" : "6901339",
            "reward" : "45",
            "imageName" : "6901339.png",
            "moreinfo" : "To kill a zombie you must destroy the brain."
        },
        zombie15 : {
            "regionoforigin" : "ABC",
            "zombiename" : " III - Black",
            "genomeid" : "6901302",
            "reward" : "45",
            "imageName" : "6901302.png",
            "moreinfo" : "To kill a zombie you must destroy the brain."
        },
        zombie16 : {
            "regionoforigin" : "ABC",
            "zombiename" : " III (Slow Walker) - White",
            "genomeid" : "5715328",
            "reward" : "45",
            "imageName" : "5715328.png",
            "moreinfo" : "To kill a zombie you must destroy the brain."
        },
        zombie17 : {
            "regionoforigin" : "ABC",
            "zombiename" : " III (Slow Walker) - White",
            "genomeid" : "5716681",
            "reward" : "45",
            "imageName" : "5716681.png",
            "moreinfo" : "To kill a zombie you must destroy the brain."
        },
        zombie18 : {
            "regionoforigin" : "ABC",
            "zombiename" : " III (Slow Walker) - Blue",
            "genomeid" : "5717547",
            "reward" : "45",
            "imageName" : "5717547.png",
            "moreinfo" : "To kill a zombie you must destroy the brain."
        },
        zombie19 : {
            "regionoforigin" : "ABC",
            "zombiename" : " III (Fast Walker) - White",
            "genomeid" : "5717574",
            "reward" : "200",
            "imageName" : "5717574.png",
            "moreinfo" : "To kill a zombie you must destroy the brain."
        },
        zombie20 : {
            "regionoforigin" : "DEF",
            "zombiename" : " III (Fast Walker) - Blue",
            "genomeid" : "5717583",
            "reward" : "200",
            "imageName" : "5717583.png",
            "moreinfo" : "To kill a zombie you must destroy the brain."
        }
    }],
    bulletinquestType : "iHaveNoIdea",
    bulletinquestAmmount : "500",
    bulletinquestName : "Please help save the animal shelter from being overrun!"
}, id : 1, bulletinquest : {
    name : "FROGGA FETT PROMO WILL EAT YOU",
    items : [{
        zombie0 : {
            "regionoforigin" : "JKL",
            "zombiename" : " - Black",
            "genomeid" : "4778931",
            "reward" : "100",
            "imageName" : "4778931.png",
            "moreinfo" : "To kill a zombie you must destroy the brain."
        },
        zombie1 : {
            "regionoforigin" : "JKL",
            "zombiename" : " - White",
            "genomeid" : "4779436",
            "reward" : "100",
            "imageName" : "4779436.png",
            "moreinfo" : "To kill a zombie you must destroy the brain."
        },
        zombie2 : {
            "regionoforigin" : "JKL",
            "zombiename" : " II - Gray",
            "genomeid" : "6900326",
            "reward" : "45",
            "imageName" : "6900326.png",
            "moreinfo" : "To kill a zombie you must destroy the brain."
        },
        zombie3 : {
            "regionoforigin" : "JKL",
            "zombiename" : " II - White",
            "genomeid" : "7009803",
            "reward" : "45",
            "imageName" : "7009803.png",
            "moreinfo" : "To kill a zombie you must destroy the brain."
        },
        zombie4 : {
            "regionoforigin" : "JKL",
            "zombiename" : " III - Red",
            "genomeid" : "5715837",
            "reward" : "100",
            "imageName" : "5715837.png",
            "moreinfo" : "To kill a zombie you must destroy the brain."
        },
        zombie5 : {
            "regionoforigin" : "GHI",
            "zombiename" : " II - Gray",
            "genomeid" : "6941414",
            "reward" : "45",
            "imageName" : "6941414.png",
            "moreinfo" : "To kill a zombie you must destroy the brain."
        },
        zombie6 : {
            "regionoforigin" : "GHI",
            "zombiename" : " II - White",
            "genomeid" : "6930804",
            "reward" : "45",
            "imageName" : "6930804.png",
            "moreinfo" : "To kill a zombie you must destroy the brain."
        },
        zombie7 : {
            "regionoforigin" : "DEF",
            "zombiename" : " - Blue",
            "genomeid" : "5597904",
            "reward" : "200",
            "imageName" : "5597904.png",
            "moreinfo" : "To kill a zombie you must destroy the brain."
        },
        zombie8 : {
            "regionoforigin" : "DEF",
            "zombiename" : " III (Slow Walker) - Blue",
            "genomeid" : "5715212",
            "reward" : "45",
            "imageName" : "5715212.png",
            "moreinfo" : "To kill a zombie you must destroy the brain."
        },
        zombie9 : {
            "regionoforigin" : "DEF",
            "zombiename" : " III (Slow Walker) - White",
            "genomeid" : "5715328",
            "reward" : "45",
            "imageName" : "5715328.png",
            "moreinfo" : "To kill a zombie you must destroy the brain."
        },
        zombie10 : {
            "regionoforigin" : "DEF",
            "zombiename" : " III (Fast Walker) - White",
            "genomeid" : "6209005",
            "reward" : "200",
            "imageName" : "6209005.png",
            "moreinfo" : "To kill a zombie you must destroy the brain."
        },
        zombie11 : {
            "regionoforigin" : "DEF",
            "zombiename" : " III (Fast Walker) - Blue",
            "genomeid" : "6209286",
            "reward" : "200",
            "imageName" : "6209286.png",
            "moreinfo" : "To kill a zombie you must destroy the brain."
        },
        zombie12 : {
            "regionoforigin" : "DEF",
            "zombiename" : " II - Gray",
            "genomeid" : "6958754",
            "reward" : "300",
            "imageName" : "6958754.png",
            "moreinfo" : "To kill a zombie you must destroy the brain."
        },
        zombie13 : {
            "regionoforigin" : "DEF",
            "zombiename" : " II - White",
            "genomeid" : "6958772",
            "reward" : "300",
            "imageName" : "6958772.png",
            "moreinfo" : "To kill a zombie you must destroy the brain."
        },
        zombie14 : {
            "regionoforigin" : "ABC",
            "zombiename" : " III - Amber Brown",
            "genomeid" : "6901339",
            "reward" : "45",
            "imageName" : "6901339.png",
            "moreinfo" : "To kill a zombie you must destroy the brain."
        },
        zombie15 : {
            "regionoforigin" : "ABC",
            "zombiename" : " III - Black",
            "genomeid" : "6901302",
            "reward" : "45",
            "imageName" : "6901302.png",
            "moreinfo" : "To kill a zombie you must destroy the brain."
        },
        zombie16 : {
            "regionoforigin" : "ABC",
            "zombiename" : " III (Slow Walker) - White",
            "genomeid" : "5715328",
            "reward" : "45",
            "imageName" : "5715328.png",
            "moreinfo" : "To kill a zombie you must destroy the brain."
        },
        zombie17 : {
            "regionoforigin" : "ABC",
            "zombiename" : " III (Slow Walker) - White",
            "genomeid" : "5716681",
            "reward" : "45",
            "imageName" : "5716681.png",
            "moreinfo" : "To kill a zombie you must destroy the brain."
        },
        zombie18 : {
            "regionoforigin" : "ABC",
            "zombiename" : " III (Slow Walker) - Blue",
            "genomeid" : "5717547",
            "reward" : "45",
            "imageName" : "5717547.png",
            "moreinfo" : "To kill a zombie you must destroy the brain."
        },
        zombie19 : {
            "regionoforigin" : "ABC",
            "zombiename" : " III (Fast Walker) - White",
            "genomeid" : "5717574",
            "reward" : "200",
            "imageName" : "5717574.png",
            "moreinfo" : "To kill a zombie you must destroy the brain."
        },
        zombie20 : {
            "regionoforigin" : "DEF",
            "zombiename" : " III (Fast Walker) - Blue",
            "genomeid" : "5717583",
            "reward" : "200",
            "imageName" : "5717583.png",
            "moreinfo" : "To kill a zombie you must destroy the brain."
        }
    }],
    bulletinquestType : "savior",
    bulletinquestAmmount : "Over 9000",
    bulletinquestName : "Clear the brooklyn tunnel"
}
  • 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-06-14T00:52:16+00:00Added an answer on June 14, 2026 at 12:52 am

    It’s invalid JSON. You need to wrap the whole thing in square brackets to make it an array:

    [ { id : 0, ... }, 
      { id: 1, ... },
      ...
    ]
    

    Note, to check if JSON is valid, there are plenty of online tools that can help (eg, JSONLint). (You’ll see there that valid JSON technically requires the keys (id, etc) to be wrapped in double-quotes.)

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

Sidebar

Related Questions

ok i have an ajax call that recives a json object. the idea of
I have no idea how to properly 'return' this JSON object (in JavaScript): function
i have a script that calls a php file and gets an JSON object
I have a object that im serializing to a JSON object using JSON.Net. This
When you have a multi-tiered object like a json object that say has 3
I have this class that I persist by creating a JSON object based on
I don't have any idea how to post a JSON RPC request using Obj-C.
I have an idea for a functional programming language design that makes heavy use
I have MySQL database, where I store the following BLOB (which contains JSON object)
Could not convert or access JSON object from PHP json_encode <?php $f_array = array();

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.