Important Notice from AspDotNetStorefront
It is with dismay that we report that we have been forced, through the action of hackers, to shut off write-access to this forum. We are keen to leave the wealth of material available to you for research. We have opened a new forum from which our community of users can seek help, support and advice from us and from each other. To post a new question to our community, please visit: http://forums.vortx.com
Results 1 to 3 of 3

Thread: Any Thoughts on JSON?

  1. #1
    Hank is offline Member
    Join Date
    Nov 2007
    Posts
    42

    Default Any Thoughts on JSON?

    We recently had a developer suggest that using Microsoft JSON (http://msdn.microsoft.com/en-us/library/bb299886.aspx) might be a better option than using WSI.

    I am not familiar with JSON.

    Is it a substitute for WSI?

    Can it be used in conjunction with WSI?

  2. #2
    webopius is offline Senior Member
    Join Date
    Nov 2008
    Location
    London, UK
    Posts
    440

    Default

    JSON is an ideal method of passing data between pages or sites but it is a different beast to WSI.

    WSI provides a web based service using an API to allow you to make bulk query, add, update, delete calls to ASPDotNetStorefront. JSON is just a lightweight data transport method (think XML without all the tags)

    Web Services in general and JSON do work well together though. The Web Service can provide the processing (such as "get me all products that have 'House' in the title") and JSON can be used to move the data from the web service provider to the service user (such as the JQuery in a web browser).

    As an example of this in action, take a look at supermart.com (an ASPDNSF site). Start typing a word into the search field and watch the results appear dynamically.

    This uses JQuery at the client, a Web Service to receive the search request and call a data access layer to retrieve the results. Then JSON is used to pass this data back to the JQuery client code which renders the results onscreen.

    Adam

  3. #3
    sduffy77 is offline Senior Member
    Join Date
    Feb 2010
    Location
    Lancaster, PA
    Posts
    142

    Default

    Quote Originally Posted by webopius View Post
    JSON is an ideal method of passing data between pages or sites but it is a different beast to WSI.

    WSI provides a web based service using an API to allow you to make bulk query, add, update, delete calls to ASPDotNetStorefront. JSON is just a lightweight data transport method (think XML without all the tags)

    Web Services in general and JSON do work well together though. The Web Service can provide the processing (such as "get me all products that have 'House' in the title") and JSON can be used to move the data from the web service provider to the service user (such as the JQuery in a web browser).

    As an example of this in action, take a look at supermart.com (an ASPDNSF site). Start typing a word into the search field and watch the results appear dynamically.

    This uses JQuery at the client, a Web Service to receive the search request and call a data access layer to retrieve the results. Then JSON is used to pass this data back to the JQuery client code which renders the results onscreen.

    Adam
    wow that's pretty fast. Good explaination.