• Home
  • About
  • BestBloggingIdeas
  • DotNetLearningSource
  • FORUM
  • Joblinks
  • Latest News
  • Policy
  • POSTS
  • SimplySqlServer.Com && SimplyAspDotNet.Com
  • Sitemap

Join Ours Forum

Asp.Net,C#,Ajax,Sql server,silverlight,Javascript codes exambles articles,Programming exambles

RSS Feed
  • Bounty Huge Roll [Amazon Frustration-Free Packaging]
  • XML Introduction to XML VHS Video Training, 1 hr., 32 minutes.
  • The Basic Overview of Windows Mobile Development Asp.Net C#
  • Overview of Sql server extended properties Asp.Net C#
  • How to Use Sql Server Extended properties using visual studio Asp.Net C#
  • Adobe Dreamweaver Templates Accelerate Web Development
  • Top Tips for Web Design Projects
  • How to Achieve a Good Web Design Structure
  • To Use Or Not To Use Website Templates
  • Five Tips to a Successful Website
  • Top 10 Articles,


    Silverlight Datagrid Select Update Delete Insert Asp.Net C#

    Differences Similarities Benefits Between Typed Datasets and Untyped Datasets asp.net c#

    Linq to Sql Introduction Entities Ado.Net C# SqlClasses Attributes Linq Mapping

    Linq Programming/How Linq Works?/Linq Implementation In Asp.Net C# Ado.Net

    Performing Developing Using Investigating Asp.Net 2.0 Ajax Application Development Asp.Net C#

    Hosting/Install Wcf Services in a Windows Service Asp.Net C#

    Connecting Silverlight to Wcf Asp.Net C#

    Silverlight Data Grid Data Binding WCF Asp.Net C#

    Invoking/Accessing/Calling WCF Service Without Adding/Creating Proxy/Reference Asp.Net C#

    Performing Doing Creating Insert Update Delete sql data Using Linq Database Asp.Net C#

    JSON-Introduction

    Posted by on November 16, 2009 Leave a comment (15) Go to comments

    JSON is a subset of JavaScript object and array literals that can be used for data transmission. JSON is less complex than XML, and it can speed up performance because of its smaller file size than comparable XML documents.

    JSON consists of two data structures:

    • q Objects—An unordered collection of name/value pairs

    • q Arrays—An ordered collection of values

    There are no variables or other control structures in JSON. It’s designed solely for transmitting data.

    JSON syntax is based on JavaScript syntax for object literals and array literals. When you use literals, you include the data itself, rather than an expression that generates the data. For example, in the following code block, the value that’s assigned to the variable x is a literal (15), while the value that’s assigned to the variable y is an expression (3*x) that must be evaluated before the assignment is complete.

         var x = 15;
         var y = 3 * x;

    JSON Datatypes

    JSON data structures can include any of the following types of data:

    • q String

    • q Number

    • q Boolean value (true/false)

    • q null

    • q Object

    • q Array

    JSON strings must be double-quoted. They use standard JavaScript escape codes and add a backslash before the following characters:

    • q “ (quotation marks)

    • q b (backspace)

    • q n (new line)

    • q f (form feed)

    • q r (carriage return)

    • q t (horizontal tab)

    • q u (plus 4 digits for a Unicode character)

    • q \ (backslash)

    • q / (forward slash)

    For example, to represent the string I feel “funny”, you escape both sets of quotation marks around the word funny:

         "I feel \"funny\""

    Object Literals

    JavaScript objects can be defined using an object constructor or an object literal. To define a new object with a constructor, you use the Object constructor function with the new keyword.

         var member = new Object();

    Then you can add properties to the object using dot notation.

         member.name = "James";
         member.address = "32 Smith Rd";
         member.isRegistered = true;

    You can also add properties to the object using array syntax.

         member["name"] = "James";
         member["address"] = "325 Smith Rd";
         member["isRegistered"] = true;

    You can create the same object more efficiently by using an object literal.

         var member =
         {name: "James",
         address: "32 Smith Road",
         isRegistered: true
         };

    JSON doesn’t use constructors, only literals. The following code shows the member object formulated as JSON text:

         {"name": "James",
           "address": "32 Smith Road",
           "isRegistered": true
         }
    Array Literals
    JavaScript arrays can also be created using
    a constructor or using an array literal. To define a new array with a constructor, you use the Array constructor function with the new keyword.
         var myArray = new Array();
    Then, you can add members to the array using square brackets and an index value that indicates the position in the array.
         myArray[0] = 1218;      myArray[1] = "1000"      myArray[2] = "james";
    You can create the same object more efficiently using an array literal.      var myArray = [1218, "Crawford", "Drive"]; The following code shows this array formulated as JSON text:
         [1218, "1000", "James"]
    Using a JSON Parser
    You can use a JSON parser to create JSON text from objects and arrays, and to create objects and arrays from JSON text. A JSON parser is provided on the JSON site at http://www.json.org/json.js. You can copy this JavaScript file and reference it in your page by including this code in the head section of the page:      <script type="text/javascript" src="json.js"></script> It defines two functions:
    toJSONString()
    parseJSON()
    The toJSONString() method is added to the JavaScript Object and Array definitions, and it enables you to convert a JavaScript object or array to JSON text. The object or array doesn't need to be preformulated as a literal in order to use this method. For example, the following code for the member object uses the Object constructor:
         <script type="text/javascript">      var member = new Object();      member.name = "James";      member.address = "32 Smith Rd";      member.isRegistered = true;      member = member.toJSONString();      alert("The member object as a JSON data structure: \n" + member);      </script>
    AJAX
    ← Pl/Sql Bulk Options:- How to use forall and Bulk Collect
    How to Create Socket Programming in ASP.NET →

    Learn Easily Using Video Tutorials


    How to choose the right Java IDE – explained Eclipse NetBeans BlueJ

    Developing/Creating/Performing/Configuring Java Applications Using Eclipse IDE

    Step By Step Guide for Download/Install Configure Eclipse IDE for Java

    Editing data with the GridView control Asp.Net C#

    Registering/Configuring Web Controls globally in web.config file asp.net c#

    Registering/Configuring Web Controls globally in web.config file asp.net c#

    Best way to prepare asp.net Interview - Success Stories

    Download Important Questions and PPT's:

    Sql Server Important Questions Online free download

    Dotnet Important Questions Online free download

    Exploring Linq to Sql Process Flow

    Learn how to perform silverlight programming

    Learn OOPs concepts in better and well manner

    Learn Ajax in better and well manner

    Leave a comment

    15 Comments.

    1. nadia_malevich December 19, 2009 at 12:27 am

      Dear Author netprogramminghelp.com !
      Very remarkable topic

    2. antonua December 25, 2009 at 3:27 pm

      I want to quote your post in my blog. It can?
      And you et an account on Twitter?

    3. casa design April 1, 2010 at 6:18 pm

      I’ve been reading a few posts and i’m adding your blog to my rss reader , thanks ! acquisto case

    4. Commercial Meat Grinder May 2, 2010 at 5:56 am

      Hello, I just joined and I am going to catch up by reading for a while. I hope I can join in soon. Digital 8 Camcorders

    5. chemotherapy regimens May 19, 2010 at 2:17 pm

      Pretty good post. I just stumbled upon your blog and wanted to say that I have really enjoyed reading your blog posts. Any way I’ll be subscribing to your feed and I hope you post again soon.

    6. hike the appalachian trail May 20, 2010 at 8:23 am

      Heard about this site from my friend. He pointed me here and told me I’d find what I need. He was right! I got all the questions I had, answered. Didn’t even take long to find it. Love the fact that you made it so easy for people like me.

    7. article writing service May 23, 2010 at 5:23 pm

      Aw, this was a really quality post. In theory I’d like to write like this too – taking time and real effort to make a good article… but what can I say… I procrastinate alot and never seem to get something done.

    8. become alpha male May 25, 2010 at 4:46 pm

      That is some inspirational stuff. Never knew that opinions could be this varied. Thanks for all the enthusiasm to offer such helpful information here.

    9. Lavenia Christal May 26, 2010 at 12:37 am

      Hi there, awesome site. I thought the topics you posted on were very interesting

    10. super sex May 26, 2010 at 5:06 am

      While this subject can be very touchy for most people, my opinion is that there has to be a middle or common ground that we all can find. I do appreciate that youve added relevant and intelligent commentary here though. Thank you!

    11. domain cheap May 26, 2010 at 5:50 am

      Hrmm that was weird, my comment got eaten. Anyway I wanted to say that it’s nice to know that someone else also mentioned this as I had trouble finding the same info elsewhere. This was the first place that told me the answer. Thanks.

    12. Ambrose June 29, 2010 at 8:11 pm

      Bloggers are not appreciated enough, many thanks for taking the time to post this.

    13. Gil July 12, 2010 at 2:26 am

      I really enjoyed reading through this article.Thank you.

    14. Brigitte August 27, 2010 at 5:04 pm

      Please, will you PM me and inform me few many more is bothered this, My corporation is absolutely fan of the site…

    15. buy levaquin no rx April 14, 2011 at 7:52 pm

      I feel like you could probably teach a class on how to make a great blog. This is fantastic! I have to say, what really got me was your design. You certainly know how to make your blog more than just a rant about an issue. Youve made it possible for people to connect. Good for you, because not that many people know what theyre doing.

    Leave a Reply Cancel reply

    Your email address will not be published. Required fields are marked *

    *

    *


    You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

    Enter your email address:

    Delivered by FeedBurner

    • Recent Posts

      • Bounty Huge Roll [Amazon Frustration-Free Packaging]
      • XML Introduction to XML VHS Video Training, 1 hr., 32 minutes.
      • The Basic Overview of Windows Mobile Development Asp.Net C#
      • Overview of Sql server extended properties Asp.Net C#
      • How to Use Sql Server Extended properties using visual studio Asp.Net C#
    • Search by Tags!

      Application AspNet Basic between Black Bluetooth Build Business Collection Consultants Design Development Downloading effective Excel Experts Generics Implement Installing Interview Logic Management Microsoft Minutes Object Outlook Professional Programmer Programming Project Projects Questions Ready Select Server Services Silverlight Source Strings Studio Through using Visual Website Wordpress
    • Archives

      • August 2011
      • June 2011
      • May 2011
      • April 2011
      • March 2011
      • February 2011
      • December 2010
      • November 2010
      • October 2010
      • September 2010
      • August 2010
      • July 2010
      • June 2010
      • May 2010
      • April 2010
      • March 2010
      • February 2010
      • January 2010
      • December 2009
      • November 2009
      • October 2009
      • September 2009

    Copyright © 2012 NetProgrammingHelp.com

    Δ Top