Thursday, January 21, 2016

Monday, January 4, 2016

JSON : JavaScript Object Notation

JSON is a syntax for storing and exchanging data.
JSON is a light weight data-interchange format.
JSON is language independent

A JavaScript program can use standard JavaScript function to convert JSON data into native JavaScript objects, instead of using any parser.

Difference between XML and JSON:

  • JSON doesn't use end tags
  • JSON is shorter
  • JSON is quicker to read and write
  • JSON can use arrays
  • XML has to be parsed with the XML Parser, JSON can be parsed by a standard JavaScript function.


Why JSON:

Using XML - 1. Fetch an XML document 2. Use XML DOM to loop through the document 3. Extract values and store in variables.

Using JSON - 1. Fetch a JSON string 2. JSON. Parse the JSON string

JSON is faster and easier than XML.

JSON Syntax:

The JSON syntax is a subset of the JavaScript syntax. JSON syntax rules:


  • Data is in name/value pair
              A name/value pair consists of a field name(in double quotes), followed by a colon, followed by a value. Example:"firstName":"John"
              JSON name requires double quotes. JavaScript names don't.
              JSON value can be an a number, a string, a Boolean, an array, an object, null.

  • Data is separated by commas
  • Curly braces holds objects
            JSON objects are written inside curly braces. JSON objects can contain multiple name/values pairs. Example : {"firstName":"John""lastName":"Doe"}
  • Square braces holds arrays.

          JSON arrays are written inside square braces. JSON array can contain multiple objects.
          Example:
          "employees":[
    {"firstName":"John""lastName":"Doe"}, 
    {"firstName":"Anna""lastName":"Smith"}, 
    {"firstName":"Peter","lastName":"Jones"}]










SharePoint 2013 workflow development tools

There are several tools that come together to provide a rich workflow development experience, like:

1. Visual Studio 2013:
Visual Studio 2013 can be used to develop workflows similar to SharePoint Designer 2013. Apart from that you also can develop custom actions and tasks such as a workflow action that interacts with a custom application.

2. SharePoint Designer 2013:
SharePoint Designer 2013 provides a rich set of features specifically designed for workflow development against both the SharePoint 2010 Workflow platform and the SharePoint 2013 Workflow platform.

3. Visio 2013:
Visio 2013 is an Office application that is used to build diagrams by using shapes and connectors. You can use Visio 2013 to build workflows based on the SharePoint 2013 Workflow platform. You can import workflows from Visio 2013 into SharePoint Designer 2013, and vice versa.

4. InfoPath 2013:
InfoPath 2013 is a tool designed for form development. Using InfoPath 2013 you can customize the forms that a workflow uses as users interact with it.

5. A supported web browser such as Internet Explorer, Firefox, or Chrome Web browsers will be used to to interact with SharePoint Server 2013 sites.