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
votes
1answer
20 views

Get the proxy authentication once we click on a specific page

SharePoint 2013 request: we need to display the proxy authentication window once we click on a specific page link "/index.aspx" .... it can be done using JavaScript ???
0
votes
0answers
21 views

Retrieve data from listdata.svc of an FBA site using jquery

I am trying to retrieve data from listdata.svc of an FBA site using jQuery but no success. Here is my code: <script> $(document).ready(function() { //use the getJSON mehtod of ...
1
vote
1answer
39 views

Sharepoint 2010 Blog - Order rest query by Category

I've created a blog on Sharepoint 2010 and want to query the list via REST for reporting. I want to order the list by the default field Category (internal name PostCategory). Unfortunately, this is a ...
0
votes
0answers
35 views

Javascript calls C# code and parser error

I am trying to get my javascript to call some C# code that I have added to my Sharepoint site. Unfortunately every time it runs, I'm not getting the "Success" i had programmed in. Instead I get this: ...
0
votes
1answer
34 views

How to combine 2 calenders from 2 different sharepoint online sites?

I've received the assignement to combine 2 calenders from 2 different sharepointonline sites. From what i researched, this is not possible with the out of the box overlay solution SharePoint has to ...
0
votes
2answers
65 views

Problems while Accessing SharePoint List items in SharePoint 2013 using REST API in NAPA tool

I am trying to access the list item using an APP in my office 365 share point hosted trial environment.It seems like the call REST call is failing, the alert in error function is getting executed. ...
0
votes
2answers
113 views

Getting an ItemCount with filtering in SP2013 using REST api

I am attempting to return an integer (itemcount) of the items within a SP2013 list. I have done this easily using the stock standard json method. However I have a need of counting the splist items ...
0
votes
1answer
47 views

Could not load file or assembly Newtonsoft.Json or one of its dependencies. The system cannot find the file specified

I am using Newtonsoft.Json assembly for Deserializing Json response. Solution builds fine, deploys fine. But when the json response is to be deserialized, I get "Could not load file or assembly ...
0
votes
2answers
62 views

SharePoint 2010 Rest API filter statement not working

I am trying to filter a rest query but can't seem to get it to work. During my testing, the following statement works (no filter, a alternate way to get the item I wanted): // sort the list desc and ...
2
votes
1answer
40 views

Sharepoint restful api: json return value is structured differently between simialr scripts

I have some odd behaviour when using REST API to query SharePoint lists. In one example, I have to use data.d.results[0] to get to the data, in another I have to use data.d[0] When I use data.d[0], ...
0
votes
0answers
83 views

DataProviderJSON: Cannot convert object of type 'System.String' to type 'System.Collections.Generic.List`1

I'm getting this error, my JSON is well formatted. using (ContentBySearchWebPart box = GetControlByIDPath(ControlID, this.Page.Controls[0]) as ContentBySearchWebPart) { string ...
0
votes
2answers
159 views

How to get JSON column “Title” in Java

I get this JSON returned and i want to select the metadata "Title" so i can change it to something else. { "d": { "results": [ { "__metadata": { "id": ...
2
votes
2answers
121 views

How to get JSON column names in Javascript

I have the following JSON response: { "d": { "results": [ { "__metadata": { "id": "c55209ae-2af9-4514-ab02-67f222903f6d", "uri": ...
1
vote
2answers
41 views

SP2013 Toolbar keeps loading invalid http json response headers for commandui.ashx

Dear smart people out there, we published SP2013 via UAG 2010 sp4. The toolbar keeps showing 'Loading ...' In javascript there is a Deserialization error. My http response for the commandui.ashx ...
0
votes
2answers
61 views

Is JSON disabled in SP 2013?

I have this code to display a share price which we embed in a script editor webpart and it works fine on SP2010 but not SP2013 - it just simply never refreshes. Is Json blocked by default? BTW I've ...
0
votes
2answers
60 views

How to filter by document name using javascript and Json

I have two document libraries: bucket and Documents. The user uploads the file to the bucket and when all the field are filled, an event receiver checks if the filename already exists (and renames it) ...
2
votes
3answers
4k views

get current user info using jquery ,REST and com

My goal is to get the login name and picture for the current user. I am using SharePoint 2013 Foundation. I tried three method and non of then worked correctly: This is with jQuery SPServices: ...
2
votes
2answers
107 views

Dealing with JSON data in Sharepoint

I'm interviewing for a company and they asked me to put together some demos for them. They have a platform they use on top of Sharepoint and I would be working extensively in it (this is a junior ...
0
votes
1answer
67 views

Getting the list id for a specific list

I am trying to get a list id for a specific list but it just goes to the failed method Here is my code: var SFW = window.SFW || {}; var NBSInboxResponse = SFW.NBSInboxResponse || {}; ...
0
votes
0answers
44 views

SharePoint 2010 Ribbon not working with Unified Access Gateway 2010 SP4

Dear smart developer out there, I try to make the SharePoint 2010 Ribbon work from behind Unified Access Gateway 2010 SP4. No luck so far, the Ribbon keeps on displaying 'Loading', and in Developer ...
0
votes
2answers
234 views

How to use SharePoint 2013 REST service to retrieve data from lookup field

I have two lists: 'Company' and 'Customer'. In 'Customer', I have an auto look up field called 'parent'. Then I tried to use Rest to retrieve data from customer like this: ...
0
votes
0answers
65 views

JSON feed for Excel data?

There is an OData feed to get data from an excel workbook via Excel Services. However, it only supports ATOM, and not JSON. is there another way to get JSON data for an excel workbook? Along these ...
1
vote
2answers
4k views

Create json data dynamically from list using javascript

Can anyone tell me how to generate json data from SharePoint lists in the below format using java script. var jsonArray = [ { "user": { "id": 100, "screen_name": "d_linq" } }, { "user": { ...
0
votes
0answers
443 views

Syntax for including maxJsonLength in a standalone web.config for a Sharepoint Farm solution?

We encountered the following error in Javascript in a Sharepoint project: Error during serialization or deserialization using the JSON JavaScriptSerializer. The length of the string exceeds the ...
0
votes
0answers
160 views

JavaScriptSerializer().Serialize() generates security-related exception

I have a class Class1 public class Class1 { public List<Class2> classTwo; } public class Class2 { public String property; public List<Class3> classThree; } public class Class3 ...
3
votes
1answer
1k views

Copy List items using REST/JSON

I'm very new to REST and JSON, I want to copy list items from one list to another list in the same site on button click, both the lists are of same type but with different column names and they are ...
2
votes
1answer
451 views

Why is upload of JSON files prohibited?

I'm trying to build a lightweight reporting tool consisting of an HTML file that would sit in a document library and consume data from JSON files residing in the same folder. The JSON file type is ...
-1
votes
1answer
174 views

iterating list using _api rest - Not working

I can see 2 records in the console but my alert doesnt print out any data and doesnt append to the table either. See below and thanks in advance // begin work to call across network var ...
0
votes
2answers
127 views

jQuery library that uses json within a sub-web

In my sharepoint site (Sharepoint Server Enterprise 2010), in IIS(7.5), I have a web-application that runs with Sharepoint as the parent site. Almost. So, I want to use a jQuery library called ...
0
votes
1answer
245 views

object object from get_userProfileProperties() stringify

var clientContext = SP.ClientContext.get_current(); var peopleManager = new SP.UserProfiles.PeopleManager(clientContext); // Get user properties for the target user. // To ...
1
vote
2answers
3k 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
364 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
47 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
3
votes
1answer
643 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 ...
2
votes
1answer
219 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
277 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
71 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
393 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
190 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
215 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
354 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
710 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
532 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
228 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
2answers
562 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
704 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 ...
2
votes
1answer
3k 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
1answer
387 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
3answers
1k 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
4answers
4k 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: ...