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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T04:54:52+00:00 2026-05-24T04:54:52+00:00

When ever I send back a JSON array via AJAX; one of the objects

  • 0

When ever I send back a JSON array via AJAX; one of the objects will be “error”:true/false. It worked fine in version 1.4.2; but since then I have changed to 1.6.2. On 1.6.2 I have built modal script but when I put it live I was getting an error with the JSON array saying that property “error” does not exist, or something along those lines, when it does.

I tried changing back to previous version of 1.4.2 but then I had a problem with the modal; mentioning a problem to do with ‘handle’ somewhere on the jQuery script itself.

I don’t know if anyone has experienced the same problem but does anyone know how to fix it?

Many thanks

Edit:
It return a string like this: {“error”:false, “data”:[{“element”:”currentweather”,”html”:”Rain”},{“element”:”currenttemp”,”html”:”22°C”}]}
I’m not sure if it’s anything to do with the array?

  • 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-24T04:54:52+00:00Added an answer on May 24, 2026 at 4:54 am

    This is weird; server side if I put json_encode an already json encoded array it works!
    i.e. json_encode(json_encode($json));

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

Sidebar

Related Questions

Ever since switching from TABLE-layout to DIV-layout, one common problem remains: PROBLEM : you
I am trying to write an HL7 message parser that will send a specified
In my view this is one of the strangest problem i have ever come
When I press enter on an NSTextField to send what ever's in the text
I need a event handler when ever shutdown message is send to system. Can
I'd like to re-brand (and send error emails) for all of the SSRS default
This function worked fine a month ago, before the newest JQuery (1.5) came out.
Has anyone ever compiled a list of all the PHP functions/methods that send output
I am trying to send multiple files to a server ever 2 seconds and
I'm using proc_open in php to launch a subprocess and send data back and

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.