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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T18:37:07+00:00 2026-06-08T18:37:07+00:00

I am getting a not well formed error when working on this site and

  • 0

I am getting a not well formed error when working on this site and was hoping to get some help. Here is the json file I’m using. It’s pretty long, but I’m getting the error in the first line of code (“product”:{“). I had posted this yesterday, but people were asking for the entire code I was using.

{
 "product": {
        "@attributes": {
            "name": "Special Ops",
            "price": "29.9900",
            "currency": "$"
        },
        "views": {
            "@attributes": {
                "total": "2",
                "etchingMaxChars": "20",
                "defaultEtchingText": "",
                "defaultLoad": "null,lenses|858388,frames|FFFFFF,left_clip|FFFFFF,right_clip|FFFFFF,left_gas|FFFFFF,right_gas|FFFFFF,adjuster|FFFFFF,strap|FFFFFF,null"
            },
            "viewcontainer": [
                {
                    "@attributes": {
                        "name": "angledRight",
                        "type": "web/desktop",
                        "baseURLPath": "file:///C:/Users/.../goggles/specops_custom/VIEW_1_600X393",
                        "width": "600",
                        "height": "393",
                        "zoomFactor": "1.47"
                    },
                    "info": {
                        "@attributes": {
                            "txt": "About Special Ops Text goes here about the goggles."
                        }
                    },
                    "view": [
                        {
                            "@attributes": {
                                "inventoryAvail": "",
                                "prices": "5.0000",
                                "leftNav": "true",
                                "displayOrder": "3",
                                "group": "",
                                "layer": "laserEtching",
                                "dispName": "Laser Etching",
                                "options": "",
                                "maxCharacters": "20",
                                "fonts": "InterstateRegular",
                                "xPos": "0px",
                                "yPos": "-8px",
                                "svgPath": "M241.98,341.199c33.033,21.092,69.746,1.989,78.103-15.621",
                                "profanityFilterWords": ""
                            }
                        },
                        {
                            "@attributes": {
                                "inventoryAvail": "324.0000,370.0000,370.0000,366.0000,377.0000,360.0000,365.0000,321.0000",
                                "prices": "0,0,0,5,5,5,5,5",
                                "leftNav": "true",
                                "displayOrder": "2",
                                "group": "",
                                "layer": "lenses",
                                "dispName": "Polarized Lens",
                                "options": "Smoke,Clear,Blue,Amber|Purple|Mirror,Blue|Silver|Mirror,Smoke|Silver|Mirror,Red|Magenta|Mirror,Smoke|Red|Mirror",
                                "fullAssetURL": "/lenses/",
                                "id": "",
                                "colorHEX": "858388,B6ADB6,007DFA,6A4A7D,7B93AA,9E9193,DE0447,5E3343"
                            }
                        },
                        {
                            "@attributes": {
                                "inventoryAvail": "339.0000,354.0000,337.0000,361.0000,370.0000,335.0000,368.0000,369.0000,392.0000,328.0000",
                                "prices": "0,0,0,0,0,0,0,0,0,0",
                                "leftNav": "true",
                                "displayOrder": "1",
                                "group": "",
                                "layer": "frames",
                                "dispName": "Frame",
                                "options": "White,Green,Blue,Purple,Magenta,Red,Orange,Yellow,Clear|,Black",
                                "fullAssetURL": "/frames/",
                                "id": "",
                                "colorHEX": "FFFFFF,43DC1A,007DFA,4A0999,FF0066,FF0000,FF8400,F2D600,CFCFCF,000000"
                            }
                        },
                        {
                            "@attributes": {
                                "inventoryAvail": "350.0000,352.0000,348.0000,372.0000,376.0000,334.0000,364.0000,317.0000,392.0000,348.0000",
                                "prices": "0,0,0,0,0,0,0,0,0,0",
                                "leftNav": "true",
                                "displayOrder": "4",
                                "group": "",
                                "layer": "left_clip",
                                "dispName": "Left Frame Lock",
                                "options": "White,Green,Blue,Purple,Magenta,Red,Orange,Black,Clear|,Yellow",
                                "fullAssetURL": "/left_clip/",
                                "id": "",
                                "colorHEX": "FFFFFF,43DC1A,007DFA,4A0999,FF0066,FF0000,FF8400,000000,CFCFCF,F2D600"
                            }
                        },
                        {
                            "@attributes": {
                                "inventoryAvail": "352.0000,362.0000,348.0000,371.0000,376.0000,343.0000,352.0000,341.0000,390.0000,318.0000",
                                "prices": "0,0,0,0,0,0,0,0,0,0",
                                "leftNav": "true",
                                "displayOrder": "5",
                                "group": "",
                                "layer": "right_clip",
                                "dispName": "Right Frame Lock",
                                "options": "White,Green,Blue,Purple,Magenta,Red,Orange,Yellow,Clear|,Black",
                                "fullAssetURL": "/right_clip/",
                                "id": "",
                                "colorHEX": "FFFFFF,43DC1A,007DFA,4A0999,FF0066,FF0000,FF8400,F2D600,CFCFCF,000000"
                            }
                        },
                        {
                            "@attributes": {
                                "inventoryAvail": "363.0000,356.0000,341.0000,377.0000,371.0000,348.0000,355.0000,370.0000,391.0000,281.0000",
                                "prices": "0,0,0,0,0,0,0,0,0,0",
                                "leftNav": "true",
                                "displayOrder": "6",
                                "group": "",
                                "layer": "left_gas",
                                "dispName": "Left Gasket",
                                "options": "White,Green,Blue,Purple,Magenta,Red,Orange,Yellow,Clear|,Black",
                                "fullAssetURL": "/left_gas/",
                                "id": "",
                                "colorHEX": "FFFFFF,43DC1A,007DFA,4A0999,FF0066,FF0000,FF8400,F2D600,CFCFCF,000000"
                            }
                        },
                        {
                            "@attributes": {
                                "inventoryAvail": "365.0000,361.0000,340.0000,374.0000,379.0000,351.0000,356.0000,355.0000,390.0000,282.0000",
                                "prices": "0,0,0,0,0,0,0,0,0,0",
                                "leftNav": "true",
                                "displayOrder": "7",
                                "group": "",
                                "layer": "right_gas",
                                "dispName": "Right Gasket",
                                "options": "White,Green,Blue,Purple,Magenta,Red,Orange,Yellow,Clear|,Black",
                                "fullAssetURL": "/right_gas/",
                                "id": "",
                                "colorHEX": "FFFFFF,43DC1A,007DFA,4A0999,FF0066,FF0000,FF8400,F2D600,CFCFCF,000000"
                            }
                        },
                        {
                            "@attributes": {
                                "inventoryAvail": "307.0000,316.0000,308.0000,337.0000,350.0000,281.0000,332.0000,298.0000,362.0000,234.0000",
                                "prices": "0,0,0,0,0,0,0,0,0,0",
                                "leftNav": "true",
                                "displayOrder": "9",
                                "group": "",
                                "layer": "adjuster",
                                "dispName": "Strap Adjuster",
                                "options": "White,Green,Blue,Purple,Magenta,Red,Orange,Yellow,Clear|,Black",
                                "fullAssetURL": "/adjuster/",
                                "id": "",
                                "colorHEX": "FFFFFF,43DC1A,007DFA,4A0999,FF0066,FF0000,FF8400,F2D600,CFCFCF,000000"
                            }
                        },
                        {
                            "@attributes": {
                                "inventoryAvail": "366.0000,345.0000,344.0000,356.0000,378.0000,352.0000,368.0000,375.0000,382.0000,287.0000",
                                "prices": "0,0,0,0,0,0,0,0,0,0",
                                "leftNav": "true",
                                "displayOrder": "8",
                                "group": "",
                                "layer": "strap",
                                "dispName": "Strap",
                                "options": "White,Green,Blue,Purple,Magenta,Red,Orange,Yellow,Clear|,Black",
                                "fullAssetURL": "/strap/",
                                "id": "",
                                "colorHEX": "FFFFFF,43DC1A,007DFA,4A0999,FF0066,FF0000,FF8400,F2D600,CFCFCF,000000"
                            }
                        },
                        {
                            "@attributes": {
                                "inventoryAvail": "",
                                "prices": "",
                                "leftNav": "false",
                                "displayOrder": "",
                                "group": "",
                                "layer": "background",
                                "dispName": "",
                                "options": "background",
                                "id": "",
                                "colorHEX": ""
                            }
                        }
                    ]
                },
                {
                    "@attributes": {
                        "name": "front",
                        "type": "web/desktop",
                        "baseURLPath": "file:///C:/Users/.../goggles/specops_custom/VIEW_2_650x252",
                        "width": "650",
                        "height": "252",
                        "zoomFactor": "1.37"
                    },
                    "info": {
                        "@attributes": {
                            "txt": "About Special Ops. More text about special ops"
                        }
                    },
                    "view": [
                        {
                            "@attributes": {
                                "inventoryAvail": "",
                                "prices": "5.0000",
                                "leftNav": "true",
                                "displayOrder": "3",
                                "group": "",
                                "layer": "laserEtching",
                                "dispName": "Laser Etching",
                                "options": "",
                                "maxCharacters": "20",
                                "fonts": "InterstateRegular",
                                "xPos": "-15px",
                                "yPos": "-58px",
                                "svgPath": "M467.503,168.446c18.426-3.05,49.64-19.418,43.423-58.752",
                                "profanityFilterWords": ""
                            }
                        },
                        {
                            "@attributes": {
                                "inventoryAvail": "324.0000,370.0000,370.0000,366.0000,377.0000,360.0000,365.0000,321.0000",
                                "prices": "0,0,0,5,5,5,5,5",
                                "leftNav": "true",
                                "displayOrder": "2",
                                "group": "",
                                "layer": "lenses",
                                "dispName": "Polarized Lens",
                                "options": "Smoke,Clear,Blue,Amber|Purple|Mirror,Blue|Silver|Mirror,Smoke|Silver|Mirror,Red|Magenta|Mirror,Smoke|Red|Mirror",
                                "fullAssetURL": "/lenses/",
                                "id": "",
                                "colorHEX": "858388,B6ADB6,007DFA,6A4A7D,7B93AA,9E9193,DE0447,5E3343"
                            }
                        },
                        {
                            "@attributes": {
                                "inventoryAvail": "339.0000,354.0000,337.0000,361.0000,370.0000,335.0000,368.0000,369.0000,392.0000,328.0000",
                                "prices": "0,0,0,0,0,0,0,0,0,0",
                                "leftNav": "true",
                                "displayOrder": "1",
                                "group": "",
                                "layer": "frames",
                                "dispName": "Frame",
                                "options": "White,Green,Blue,Purple,Magenta,Red,Orange,Yellow,Clear|,Black",
                                "fullAssetURL": "/frames/",
                                "id": "",
                                "colorHEX": "FFFFFF,43DC1A,007DFA,4A0999,FF0066,FF0000,FF8400,F2D600,CFCFCF,000000"
                            }
                        },
                        {
                            "@attributes": {
                                "inventoryAvail": "350.0000,352.0000,348.0000,372.0000,376.0000,334.0000,364.0000,317.0000,392.0000,348.0000",
                                "prices": "0,0,0,0,0,0,0,0,0,0",
                                "leftNav": "true",
                                "displayOrder": "4",
                                "group": "",
                                "layer": "left_clip",
                                "dispName": "Left Frame Lock",
                                "options": "White,Green,Blue,Purple,Magenta,Red,Orange,Black,Clear|,Yellow",
                                "fullAssetURL": "/left_clip/",
                                "id": "",
                                "colorHEX": "FFFFFF,43DC1A,007DFA,4A0999,FF0066,FF0000,FF8400,000000,CFCFCF,F2D600"
                            }
                        },
                        {
                            "@attributes": {
                                "inventoryAvail": "352.0000,362.0000,348.0000,371.0000,376.0000,343.0000,352.0000,341.0000,390.0000,318.0000",
                                "prices": "0,0,0,0,0,0,0,0,0,0",
                                "leftNav": "true",
                                "displayOrder": "5",
                                "group": "",
                                "layer": "right_clip",
                                "dispName": "Right Frame Lock",
                                "options": "White,Green,Blue,Purple,Magenta,Red,Orange,Yellow,Clear|,Black",
                                "fullAssetURL": "/right_clip/",
                                "id": "",
                                "colorHEX": "FFFFFF,43DC1A,007DFA,4A0999,FF0066,FF0000,FF8400,F2D600,CFCFCF,000000"
                            }
                        },
                        {
                            "@attributes": {
                                "inventoryAvail": "363.0000,356.0000,341.0000,377.0000,371.0000,348.0000,355.0000,370.0000,391.0000,281.0000",
                                "prices": "0,0,0,0,0,0,0,0,0,0",
                                "leftNav": "true",
                                "displayOrder": "6",
                                "group": "",
                                "layer": "left_gas",
                                "dispName": "Left Gasket",
                                "options": "White,Green,Blue,Purple,Magenta,Red,Orange,Yellow,Clear|,Black",
                                "fullAssetURL": "/left_gas/",
                                "id": "",
                                "colorHEX": "FFFFFF,43DC1A,007DFA,4A0999,FF0066,FF0000,FF8400,F2D600,CFCFCF,000000"
                            }
                        },
                        {
                            "@attributes": {
                                "inventoryAvail": "365.0000,361.0000,340.0000,374.0000,379.0000,351.0000,356.0000,355.0000,390.0000,282.0000",
                                "prices": "0,0,0,0,0,0,0,0,0,0",
                                "leftNav": "true",
                                "displayOrder": "7",
                                "group": "",
                                "layer": "right_gas",
                                "dispName": "Right Gasket",
                                "options": "White,Green,Blue,Purple,Magenta,Red,Orange,Yellow,Clear|,Black",
                                "fullAssetURL": "/right_gas/",
                                "id": "",
                                "colorHEX": "FFFFFF,43DC1A,007DFA,4A0999,FF0066,FF0000,FF8400,F2D600,CFCFCF,000000"
                            }
                        },
                        {
                            "@attributes": {
                                "inventoryAvail": "307.0000,316.0000,308.0000,337.0000,350.0000,281.0000,332.0000,298.0000,362.0000,234.0000",
                                "prices": "0,0,0,0,0,0,0,0,0,0",
                                "leftNav": "true",
                                "displayOrder": "9",
                                "group": "",
                                "layer": "adjuster",
                                "dispName": "Strap Adjuster",
                                "options": "White,Green,Blue,Purple,Magenta,Red,Orange,Yellow,Clear|,Black",
                                "fullAssetURL": "/adjuster/",
                                "id": "",
                                "colorHEX": "FFFFFF,43DC1A,007DFA,4A0999,FF0066,FF0000,FF8400,F2D600,CFCFCF,000000"
                            }
                        },
                        {
                            "@attributes": {
                                "inventoryAvail": "366.0000,345.0000,344.0000,356.0000,378.0000,352.0000,368.0000,375.0000,382.0000,287.0000",
                                "prices": "0,0,0,0,0,0,0,0,0,0",
                                "leftNav": "true",
                                "displayOrder": "8",
                                "group": "",
                                "layer": "strap",
                                "dispName": "Strap",
                                "options": "White,Green,Blue,Purple,Magenta,Red,Orange,Yellow,Clear|,Black",
                                "fullAssetURL": "/strap/",
                                "id": "",
                                "colorHEX": "FFFFFF,43DC1A,007DFA,4A0999,FF0066,FF0000,FF8400,F2D600,CFCFCF,000000"
                            }
                        },
                        {
                            "@attributes": {
                                "inventoryAvail": "",
                                "prices": "",
                                "leftNav": "false",
                                "displayOrder": "",
                                "group": "",
                                "layer": "background",
                                "dispName": "",
                                "options": "background",
                                "id": "",
                                "colorHEX": ""
                            }
                        }
                    ]
                }
            ]
        }
    }
}

And then this is how I am calling it using js.

$j.getJSON(
            "file:///C:/Users/.../specops.js",{},

            function (d) {
                $j.extend(tdata, d);
            }
        );

I am pretty new to working this extensively with json, etc so I’m sure I’m doing something wrong. Any ideas and help would be great.

  • 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-08T18:37:10+00:00Added an answer on June 8, 2026 at 6:37 pm

    I just tested this locally and I am receiving a Origin null is not allowed by Access-Control-Allow-Origin. The problem is you can’t use AJAX to access files using file protocol. Host your JSON file, script and HTML on a web server like IIS or Apache and try again and see if you get the same error.

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

Sidebar

Related Questions

I've been getting parser error with message The server tag is not well formed
I'm getting a not well-formed error in the error console of Firefox 3.0.7 when
I'm working with the YamlDotNet library and I'm getting this error when loading a
I am getting the error Parser Error Message: The server tag is not well
I'm not getting any anti-aliasing when using drawing GL_TRIANGLE_FANs with this code: glDisable(GL_DEPTH_TEST); //
I am not getting any error message in browser due to curly brace missing
I'm not getting the syntax right. Lets say I have this... #include <set> ...
I'm simply not getting this to work. I saw that this network isn't for
I am new to this forum and not well aware of protocols of this
I'm not well clued up with javascript so I'm having a problem getting the

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.