Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

JSON - in Ajax (Php and Javascript)

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
23,453
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Feb 25, 2009

Syntax of JSON. Decoding and encoding json in php and javascript. Simple example of a ajax app communicating in json with the server...
Download Json Library: http://www.json.org/json2.js


please joing my facebook group for regular JS tutorials and other queries
http://www.facebook.com/group.php?gid=7551735644

Category:

People & Blogs

Tags:

License:

Standard YouTube License

  • likes, 10 dislikes

Link to this comment:

Share to:

Uploader Comments (alihammadshah)

  • Is there a way to send a json array from php to javascript without an external javascript library?

  • @KE7CFN

    I think for decoding javascript without a JSON library in javascript, you could use eval..

    var jsobj = eval("("+jsonstr+")");

  • no offense but this really is easy as hell. i'm now 16 years old and I've been doing stuff lile this for almost 3 years now...

  • @Robbinski14 yeh its easy to learn decode and encode. When I learn't Files I/O, I used to store data in tags like XML but i didn't know XML existed. Doesn't mean I am as smart as the XML inventor. This data format is ideal of JS because it represents JS object and now the decoders/encoders written in different languages for JSON are also very very fast.

  • That was a awesome! I informative and very detailed yet simple.

    Thank you , I have had exp. with JSON and Ajax with php , but needed a refresher. Thank you so much, your delivery of the subject was amazing.

  • @www70665 thank you v much :).

Video Responses

This video is a response to Ajax: Json
see all

All Comments (49)

Sign In or Sign Up now to post a comment!
  • nice and very clear video...it's a simple example but it does the job.

  • Can I place that index.php as index.html outside the server? Will it work?

  • @eltin182 he is using netbeans for some of his videos. You can use a norml text editor too, but you wont get the text completion and suggestions

  • Posted a year and a half ago but still a terrific intro to JSON + PHP. Thanks!

  • @eltin182

    Integrated development environment, usually a program that aids development by providing lots of programming tools such as syntax highlighting, auto-completion of common classes, built in compilation, language help, and others.

  • what its IDE?

  • what text editor is that?

  • @Robbinski14 you're so smart robbinski, and humble too. i guess because this is easy as hell we wouldn't need tutorials like this right? i guess you watched this tutorial only to make sure alihammadshah wasn't making any mistakes?

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more