JavaScript Object Notation, is an open standard format that uses human-readable text to transmit data objects consisting of attribute–value pairs. It is used primarily to transmit data between a server and web application, as an alternative to XML.

learn more… | top users | synonyms

1
vote
2answers
60 views

ajax call with SharePoint REST API to get JSON response

I am trying to GET list items from SharePoint 2013 using REST API and ajax call.It is returning by default ATOM+XML. I want the response in JSON format. I tried the following however still same XML ...
1
vote
1answer
55 views

SharePoint Online 2013 Page Code Embed and Javascript - output disappears

I noticed I can't embed inline javascript in an SPO 2013 Web Part page, but can reference a library. I'm outputting a table from that js. If I put alerts that table displays but then disappears ...
0
votes
0answers
14 views

unable to retireve Json data in IE.Working fine in Chrome and Mozilla

unable to retrieve Json data from Feed URL in IE.Working fine in Chrome and Mozilla. Throwing Access denied error in IE, but able to get data in Chrome and Mozilla
2
votes
1answer
129 views

Invalid JSON. A token was not recognized in the JSON content

I fetch data from Sharepoint using perl on a linuxmachine. This worked real good as long as I only had to read data from there. Now that I also have to change data on Sharepoint I'm stuck. Altough ...
0
votes
0answers
66 views

Discussion Board Best Reply Clost Thread

I am creating a discussion board app and want to know if I can amend the top button that has the text "Best Reply". I want users to be able to mark the discussion as complete. I am adding a choice ...
2
votes
1answer
69 views

serialize SPListItemCollection through WCF sharepoint 2013

My question is simple, how to get ( or retrieve ) json serialized SPListItemCollection through WCF service ? tried to use NewtonSoft for .Net, but it's throw an exception when try to serialized it. I ...
1
vote
0answers
96 views

How to configure SharePoint REST API to return JSON by default?

I'm using a 3rd party HTTP client to retrieve data from SharePoint. I want to get the result in JSON format. I know one method is to add the header "Accept": "application/json; odata=verbose" ...
0
votes
1answer
35 views

Error when i parse string object to json object [closed]

Hi I'm trying to parse my string to a json object, it wont work, I get a error when I debug the code, Syntax error, here is my variable I want to parse, var myyVar = "{title: 'myTitle',root: ...
0
votes
1answer
214 views

Return JSON rather than XML in a Sharepoint 2013 App (JSOM)

Is it possible to return JSON when using the following code. Trying to integrate DynaTable into app to handle all the sorting and filtering and I think JSON might get it to work. // This function ...
1
vote
1answer
97 views

JSON Viewer WebPart

Is there a JSON Viewer webpart that functions in a similar manner to XML Viewer? Should I just use a DataView Webpart?
1
vote
0answers
121 views

how to pares search api odata json result in C#

i'm using that search query string siteUrl = "<site>"; string queryText ="Path:\"pathTosearch/*\" IsDocument:1"; string rowlimit = "10"; string sortExpression = "Write:descending"; ...
0
votes
0answers
203 views

Workflow Manager anomaly when getting child scopes (for Sharepoint 2013 registration or using Workflow Explorer MSDN sample)

(I have originally posted this question to Azure forum few days ago and repeating it here as i get no response there and i just discovered this site. Thanks in advance...) I have installed Workflow ...
0
votes
1answer
324 views

External ajax request / json in sharepoint app

I'm trying to create a sharepoint app that gets and use json data generated on another web site / web application through an ajax request. Let's say the JSON data I want to get from the other website ...
1
vote
1answer
321 views

Create C# web service that returns SharePoint ListCollection

I want to create a WebService that returns the SharePoint ListCollection in JSON format. I have tried by using following code: ClientContext ctx = new ClientContext("mySite"); ctx.Credentials = new ...
0
votes
1answer
63 views

Sharepoint 2007 Jsonp Web Services

Is there a way to get list items from a sharepoint 2007 site via JSONP? I am trying to do a cross domain call from a 2010 instance of sharepoint.
3
votes
1answer
327 views

SharePoint REST POST to upload file produces corrupted or empty file

I've got this jquery/REST process that I thought was uploading a PDF file to SPO 2013 Document library, but it's only producing an empty or corrupt. Anybody know why? function ...
2
votes
1answer
427 views

SharePoint 2013 REST - Possible to Upload accross Site collections with embeded code or NAPA? SP.AppContextSite 403

Has anybody been able to REST Upload cross site/domain of a file to a document Library with REST on SPO 2013 thru embedded page code or NAPA? Wondering how app security is set on the TargetSite? I ...
0
votes
2answers
1k views

REST post with metadata column?

I have a jquery script that uploads a file to document library. I'm trying to set a choice column in the same call, but can't seem to get it to work. The upload is working, but Col1 is a choice ...
0
votes
0answers
105 views

Button to delete File from SharePoint Online Document Library - with NAPA/JQuery/REST

Anybody got some sample JQuery/REST code in NAPA to delete a Document library file on SharePoint Online? Ideally, to delete a file on a doc library on another site collection (NOT the NAPA apps host ...
0
votes
1answer
232 views

SharePoint Online o365 JSON data of list of parent site from NAPA? GetbyTitle

Why can't I call REST of the apps parent site from NAPA? I need data from a list on the same level as the app. This chokes. And if I use the Apps URL, it can't find the list with GetByTitle. ...
0
votes
0answers
192 views

SharePoint 2013 - external content type - insert data

I am trying to insert data to SQL DB from a SharePoint App. I am using external content type to consume the database. When I try to insert, I am getting following error: Error msg: Message ...
0
votes
0answers
101 views

SharePoint 2013 - external content type - insert data [duplicate]

I am trying to insert data to SQL DB from sharepoint APP. I am using external content type to consume the database. When I try to insert, I am getting following error. ...
0
votes
3answers
606 views

read data from list with REST + Javascript : Error : unable to get property d of undefined or null reference

I am trying to get item from SharePoint list by passing a parameter with the ID to the list and retrieving the item. My code is this: $.ajax({ url: 'http://mysite:5555/_api/web/lists/getbytitle("my ...
0
votes
3answers
1k views

REST service and JSON

How can I retrieve via REST service in SharePoint item column values in JSON: This is my snippet: $.ajax({ url: '/_api/web/lists/getbytitle("my list")/items/getbyid(3), type: "GET", header: ...
0
votes
1answer
72 views

Export documents from sharepoint to another website

I'm trying to get files and lists from my Sharepoint server showed on another website. How should I do to make a document viewable on the webpage, that is exported from SP2013? I also want to search ...
1
vote
0answers
37 views

Exporting document content from SP2013 to external webapp

How should I do to make a document viewable on a webpage, that is exported from SP2013 document library. A user should be able to, through a webpage send a request to view the content of a specific ...
0
votes
1answer
181 views

Accessing my list field values via dot notation after json.stringifier

This just be so obvious but I it seems not. Below I stripped out some of the code for clarity var list = context.get_web().get_lists().getByTitle('SMenuLink') //usual code to open a list using ...
1
vote
1answer
889 views

JSON file is not served

In a standard team site, I have a document library that host a static website with html files as well json files loaded asynchronously with javascript. This was working well in SharePoint 2007. ...
0
votes
3answers
758 views

jquery client object model to return json: what about caml vs. js filtering?

trying to learn client object model (ecma/js/jquery) approach to returning json data and working with that. below I will supply a quick example, but my question is basic context of how would I go ...
1
vote
1answer
455 views

accessing remote web services(cross domain applications) using jquery jsonp

Here is My code ..could anyone please solve this problem..I was struggling from morning..below code is not working.Actually i should get the data when we send jasondata as input..but i am getting ...
1
vote
1answer
1k views

JavaScript in CEWP does not execute

After putting a small script together and pasting it into the Content Editor Web part all my breakpoints show the following warning in IE 8's debugger: "The breakpoint is not valid. No executable code ...
3
votes
5answers
453 views

Proxy page for Office 365

I am working on an Office 365 (SharePoint Online) website, and I am looking for a way to retrieve data (xml, json) from remote sites that don't necessarily support JSON-P or CORS. I could use an XML ...
1
vote
2answers
655 views

Creating new items containing lookup field with listdata.svc and json

I'm calling listdata.svc with xmlhttprequest and POST to pass json. The new item is being created, but a new item is being created on the lookup list when I do, even though I am passing an existing ...
0
votes
2answers
3k views

SharePoint Cross Domain Request with jQuery

I've been going around in circles for a couple hours now to no avail. I had thought that what I wanted to do was not possible but some threads that I was reading on SO were saying otherwise so I ...
7
votes
3answers
2k views

How to avoid _metadata in a REST response (listData.svc)

I am pulling data from a SharePoint list with listData.svc, and _metadata represent more than half of the response content. Is there a way to return list fields only, without the metadata? Below an ...
2
votes
1answer
357 views

SP2010, Odata, anonymous access

Is anonymous access to listdata.svc possible? I'm trying to just simply get list items and display them using json but I either get asked to login or a 401 unauthorized. It's a claims based site ...
2
votes
1answer
635 views

Can I use asp.net web service in Sharepoint project?

I had create .asmx webservice in asp.net projects. my doubts that is this able to use this webservice in sharepoint project? suppose this is my code source: function (request, response) { ...