caramoan tour package

caramoan tour package

Author Topic: Json (javascript Object Notation)  (Read 439 times)

Offline mini_mouse ^_^

  • Size C Battery
  • *****
  • Posts: 244
  • Pogi/Ganda Points: 7
  • Gender: Female
  • he's keeping it up, I should take pride :)
Json (javascript Object Notation)
« on: April 11, 2012, 10:54:57 AM »
Hello po... anyone here have background, concept regarding json? yung nangyayari po sa data behind if yung datatype na pipapasa mo is json datatype.... :)
...I'm thankful each and every day, coz I found you...

Philippine Electronics Forum

Json (javascript Object Notation)
« on: April 11, 2012, 10:54:57 AM »

Offline Lola Baciang

  • Diesel Generator
  • *
  • Posts: 1440
  • Pogi/Ganda Points: 141
  • Gender: Female
Re: Json (javascript Object Notation)
« Reply #1 on: April 11, 2012, 11:03:46 AM »
up ;D
Expect The Unexpected

Philippine Electronics Forum

Re: Json (javascript Object Notation)
« Reply #1 on: April 11, 2012, 11:03:46 AM »

Offline mini_mouse ^_^

  • Size C Battery
  • *****
  • Posts: 244
  • Pogi/Ganda Points: 7
  • Gender: Female
  • he's keeping it up, I should take pride :)
Re: Json (javascript Object Notation)
« Reply #2 on: April 11, 2012, 11:10:08 AM »
up ;D

hello po.. web developer ka rin po ba?
...I'm thankful each and every day, coz I found you...

Philippine Electronics Forum

Re: Json (javascript Object Notation)
« Reply #2 on: April 11, 2012, 11:10:08 AM »

Offline mini_mouse ^_^

  • Size C Battery
  • *****
  • Posts: 244
  • Pogi/Ganda Points: 7
  • Gender: Female
  • he's keeping it up, I should take pride :)
Re: Json (javascript Object Notation)
« Reply #3 on: April 12, 2012, 03:59:38 PM »
Up..! web developers...... nasaan na kau?
...I'm thankful each and every day, coz I found you...

Philippine Electronics Forum

Re: Json (javascript Object Notation)
« Reply #3 on: April 12, 2012, 03:59:38 PM »

Offline ΔЅịMø

  • Gas Turbine
  • **
  • Posts: 2903
  • Pogi/Ganda Points: 140
  • Gender: Male
  • "Live Curious"
Re: Json (javascript Object Notation)
« Reply #4 on: April 12, 2012, 04:19:04 PM »
Up! ;D
Computer Engineering National Organization registration thread


Philippine Electronics Forum

Re: Json (javascript Object Notation)
« Reply #4 on: April 12, 2012, 04:19:04 PM »

Offline mini_mouse ^_^

  • Size C Battery
  • *****
  • Posts: 244
  • Pogi/Ganda Points: 7
  • Gender: Female
  • he's keeping it up, I should take pride :)
Re: Json (javascript Object Notation)
« Reply #5 on: April 12, 2012, 04:27:37 PM »
Up! ;D

mas madali raw kasi ang data retrieving using JSOn compared to XML... I want to know why.. what happens behind... kung sa datacom pa, yung nangyayari in each layer during transmission.. :D
...I'm thankful each and every day, coz I found you...

Offline your most RIDICULOUS man :)

  • Diesel Generator
  • *
  • Posts: 1842
  • Pogi/Ganda Points: 53
  • Gender: Male
Re: Json (javascript Object Notation)
« Reply #6 on: April 12, 2012, 07:01:39 PM »
UP!
God give us the grace to accept with serenity the things that cannot be changed, courage to change the things which should be changed and the wisdom to distinguish the one from the other [Reinhold Niebuhr]

Offline your most RIDICULOUS man :)

  • Diesel Generator
  • *
  • Posts: 1842
  • Pogi/Ganda Points: 53
  • Gender: Male
Re: Json (javascript Object Notation)
« Reply #7 on: April 12, 2012, 07:01:55 PM »
UP!
God give us the grace to accept with serenity the things that cannot be changed, courage to change the things which should be changed and the wisdom to distinguish the one from the other [Reinhold Niebuhr]

Offline zrehtiek/keitherz

  • Lead Acid Battery
  • *******
  • Posts: 772
  • Pogi/Ganda Points: 45
  • Gender: Male
  • PhilRoboKit Anito
Re: Json (javascript Object Notation)
« Reply #8 on: April 12, 2012, 07:07:57 PM »
http://en.wikipedia.org/wiki/JSON
http://ajaxian.com/archives/json-vs-xml-the-debate

what do you mean by what's happening behind?
it's just data parsing.

Offline zer0w1ng

  • Technical People
  • Gas Turbine
  • *****
  • Posts: 2179
  • Pogi/Ganda Points: 305
  • Gender: Male
  • Enter any 11-digit prime number to continue...
    • The Cebuano Geek
Re: Json (javascript Object Notation)
« Reply #9 on: April 12, 2012, 07:10:52 PM »
mas madali raw kasi ang data retrieving using JSOn compared to XML... I want to know why.. what happens behind... kung sa datacom pa, yung nangyayari in each layer during transmission.. :D

The browser's javascript interpreter could easily understand JSON data structures thus it has an advantage over XML.
This is done natively by using eval() function.

XML on the other hand needs parsing to be able to extract the data content.

JSON is seen mostly as a response format of AJAX queries to a web service that can be eval()'ed directly.

A good read about the AJAX response formats here:
http://www.quirksmode.org/blog/archives/2005/12/the_ajax_respon.html
The Cebuano Geek

Offline mini_mouse ^_^

  • Size C Battery
  • *****
  • Posts: 244
  • Pogi/Ganda Points: 7
  • Gender: Female
  • he's keeping it up, I should take pride :)
Re: Json (javascript Object Notation)
« Reply #10 on: April 13, 2012, 08:48:35 AM »
finally, may response na rin.. :D

thanks po mga master...

yung sa nangyayari po sa data parsing ng JSON data.... may deeper explanation po ba yun?
 just like po sa discussion in data communication wherein, yung data po is converted into different forms.... ex... bit-frames-packets... something ganon....
...I'm thankful each and every day, coz I found you...

Offline zer0w1ng

  • Technical People
  • Gas Turbine
  • *****
  • Posts: 2179
  • Pogi/Ganda Points: 305
  • Gender: Male
  • Enter any 11-digit prime number to continue...
    • The Cebuano Geek
Re: Json (javascript Object Notation)
« Reply #11 on: April 13, 2012, 09:56:47 AM »
JSON is just a data representation that the native javascript interpreters on all internet browsers can understand and as standard.
This notation is used to define arrays, structures or arrays of structures easily.

So there is no "conversion" with it because it is the native syntax that data is defined in Javascript.
Javascript can understand it as is.

Example, to assign an associative array to a variable directly in JSON is done simply as:
var a = { "key1":"apple", "key2":"orange" };

However, not using JSON you have to define the array this way:
var a = [];
a["key1"] = "apple";
a["key2"] = "orange";
The Cebuano Geek

Offline mini_mouse ^_^

  • Size C Battery
  • *****
  • Posts: 244
  • Pogi/Ganda Points: 7
  • Gender: Female
  • he's keeping it up, I should take pride :)
Re: Json (javascript Object Notation)
« Reply #12 on: April 13, 2012, 10:02:20 AM »
ah.. same ast it is po... wala na pong conversion2?..

yung pinapasa ko po kasi is serialized JSON sa controller po.. then after narcv ng controller, deserialize nya po yung json...
...I'm thankful each and every day, coz I found you...

Offline ΔЅịMø

  • Gas Turbine
  • **
  • Posts: 2903
  • Pogi/Ganda Points: 140
  • Gender: Male
  • "Live Curious"
Re: Json (javascript Object Notation)
« Reply #13 on: April 13, 2012, 10:24:06 AM »
Nosebleed. ;D ;D ;D
Computer Engineering National Organization registration thread


Offline mini_mouse ^_^

  • Size C Battery
  • *****
  • Posts: 244
  • Pogi/Ganda Points: 7
  • Gender: Female
  • he's keeping it up, I should take pride :)
Re: Json (javascript Object Notation)
« Reply #14 on: April 13, 2012, 12:11:01 PM »
Nosebleed. ;D ;D ;D


:D :D nosebleed talaga... basta code lng ako ng code... don't really understand what's happening really inside... lalo na yung serialization at deserialization... basta ginagawang string if serialization... then convert nya to objects if deserialization..
...I'm thankful each and every day, coz I found you...

Philippine Electronics Forum

Re: Json (javascript Object Notation)
« Reply #14 on: April 13, 2012, 12:11:01 PM »

 

Privacy Policy

Contact Us: elabph@yahoo.com