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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T21:50:00+00:00 2026-05-26T21:50:00+00:00

i am using jQuery to get some JSON data from a php file. my

  • 0

i am using jQuery to get some JSON data from a php file.
my data is ut8 encoded and to decode it ( as i’ve understood, maybe im wrong) so it
won’t show the \uXXX is the use parseJSON method.

my JSON data is :

({"4":{"id":"88","label":"\u00eb\u00e9\u00fa\u00e4 \u00e0'","parent_id":"1","level":"1","children":[{"id":"92","label":"\u00e4\u00e9\u00f1\u00e8\u00e5\u00f8\u00e9\u00e4","parent_id":"88","level":"2","children":[{"id":"96","label":"\u00ee\u00e9\u00fa\u00e5\u00ec\u00e5\u00e2\u00e9\u00e4 \u00f0\u00e5\u00f8\u00e3\u00e9\u00fa","parent_id":"92","level":"3","children":[]}]},{"id":"90","label":"\u00ee\u00fa\u00ee\u00e8\u00e9\u00f7\u00e4","parent_id":"88","level":"2","children":[{"id":"97","label":"\u00ee\u00f9\u00e5\u00e5\u00e0\u00e5\u00fa","parent_id":"90","level":"3","children":[{"id":"98","label":"\u00f0\u00e5\u00f1\u00e7\u00e0\u00e5\u00fa","parent_id":"97","level":"4","children":[]}]}]}]},"5":{"id":"89","label":"\u00eb\u00e9\u00fa\u00e4 \u00e1'","parent_id":"1","level":"1","children":[]},"6":{"id":"91","label":"\u00eb\u00e9\u00fa\u00e4 \u00e2'","parent_id":"1","level":"1","children":[{"id":"93","label":"\u00e4\u00e9\u00f1\u00e8\u00e5\u00f8\u00e9\u00e4","parent_id":"91","level":"2","children":[{"id":"94","label":"\u00e4\u00e9\u00f1\u00e8\u00e5\u00f8\u00e9\u00e4 \u00e9\u00e4\u00e5\u00e3\u00e9\u00fa","parent_id":"93","level":"3","children":[]},{"id":"95","label":"\u00e4\u00e9\u00f1\u00e8\u00e5\u00f8\u00e9\u00e4 \u00e9\u00e5\u00e5\u00f0\u00e9\u00fa","parent_id":"93","level":"3","children":[]}]}]}});

and my JS is:

    $(document).ready(function(){
$.getJSON(
    'some url.../getJSON.php?callback=?',
    function(data) {
        data = jQuery.paresJSON(data);

        $('#tree1').tree({
            data: data
        });

    }
);

});

this outputs nothing and shows me the error mentioned above.

any idea what have i done wrong?

Thanks in advance u guys,
Eric

  • 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-26T21:50:00+00:00Added an answer on May 26, 2026 at 9:50 pm

    Your code uses paresJSON instead of parseJSON.

    Fix that typo, and that should fix it.

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

Sidebar

Related Questions

I am using jQuery to get back some JSON data from the server. I
I'm using JQuery's getJSON method to retrieve some data from an MVC controller. [AcceptVerbs(HttpVerbs.Get)]
I'm trying to post some very simple data to a php file using jquery
I am trying to get some data back from a server using jQuery $.getJSON
I use jQuery to get values of presaved elements from some websites, using paths
I am doing an ajax call using jquery to get data in json format.
I am using jQuery's $.ajax method to retrieve some JSON from an API. Each
I'm using ajax to retrieve some data from the backend. I get the result
I am trying to retrieve some data from a database using jQuery's $.getJSON method
I'm using jQuery to output the results of a JSON string created by PHP

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.