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

0
votes
2answers
51 views

How to elevate permission in JSOM code to access SharePoint list?

How to elevate permission in JSOM code to get permission to do Add/Edit/Update operation on SharePoint list? (similar to RunWithElevatedPriviledges in SSOM). If elevation is not possible then my ...
4
votes
3answers
694 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 ...
0
votes
0answers
16 views

REST api getting custom user profile property

I'm creating a workflow, using VS 2013, that needs to get a user profile with some custom properties. I used REST to try and get the custom properties but according to msdn ...
0
votes
1answer
42 views

Reading JSON result

I have the JSON response below d: { __metadata: {...}- Items: { __metadata: { type: "Collection(SP.Taxonomy.TaxonomyFieldValue)" }- results: [1] 0: { ...
0
votes
1answer
35 views

How can I get user information from user ID?

I am writing a very small C# console app and I am making an HttpWebRequest to get the list items in a task log and send a daily summary email to everyone with something 'assigned to' them, showing ...
2
votes
1answer
42 views

Use filtered URL in Ajax call to return JSON data

Currently I am working on sort of a JavaScript function library for all things SharePoint to pass around to some of the SP developers at my work. The idea is to just take some simple features I see ...
0
votes
1answer
36 views

REST Call to get DefaultNewFormUrl

I am trying to make a call to the REST service in Javascript to collect the 'DefaultNewFormUrl' for a specific list. The property is "not returned with the resource" so I need to make a separate call ...
2
votes
3answers
162 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
2answers
50 views

Set Managed Metadata Values via REST

I am able to query and get an array of all my term names and guids within a Term Set, but now I want to be able to set these via REST. When I look at the structure in JSON the section with my Managed ...
2
votes
3answers
7k views

get current user info using jquery ,REST and csom

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: ...
1
vote
2answers
69 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 ...
-1
votes
1answer
33 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
52 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 ...
0
votes
0answers
55 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
51 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
86 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. ...
1
vote
2answers
801 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
160 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
109 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
64 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
125 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 ...
2
votes
2answers
221 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": ...
0
votes
2answers
188 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": ...
1
vote
2answers
66 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
65 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
80 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) ...
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
2answers
118 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
70 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
55 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
330 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
78 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
7k 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
571 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
195 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 ...
2
votes
1answer
745 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 ...
0
votes
4answers
6k 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: ...
-1
votes
1answer
225 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
1answer
312 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
4k 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
439 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 ...
3
votes
1answer
831 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 ...
1
vote
1answer
689 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 ...
2
votes
1answer
4k 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 ...
2
votes
1answer
284 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 ...
0
votes
3answers
2k 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 ...
1
vote
0answers
322 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
78 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
462 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
226 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?