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
0answers
14 views

Read items from App list

I have SharePoint (O365) "HostSite" with "AnApp" and "SomeSubsite". "AnApp" has "AppList". I need on "SomeSubsite" HomePage view some item fields from "AppList". Any working example? I found only ...
0
votes
1answer
12 views

Building a To-Do List with jQuery and Local Storage

Hi i am working on a project to do task list where every thing work fine but i am not able to store data in list in following link data is store in var data = ...
1
vote
0answers
28 views

Read user field via Javascript/REST: Some users are NULL

I have a simple list with a simple user field. I can assign users, save the item and everything was working fine... ...until I tried to access the list via REST call within a Javascript. Some of the ...
0
votes
1answer
31 views

WF gets canceled status while WS call

I’ m trying to call HTTP WS from WF. Unfortunately, it gets canceled every time and I can’t understand a reason. In a browser service works fine. Would you mind telling me what’s wrong? WS source ...
0
votes
1answer
26 views

Sharepoint don't get JSON with IE9

I have a small AngularJS Application in SharePoint 2013, where I get a JSON File from an asmx WS to show. The Application runs fine, except with IE9 on SharePoint. All other Browser don't have any ...
3
votes
1answer
39 views

Combine SharePoint Lists in a different SharePoint Site

I have a task to create a SharePoint List that is a combination of 2 lists present on another SharePoint site. There is no admin access to this site. Is is possible to get it and manipulate it? ...
2
votes
1answer
92 views

JSon REST API. Retrieving items in lists. Workflows

Using this: http://www.wonderlaura.com/Lists/Posts/Post.aspx?ID=224 I was able to make a workflow that loops through lists. Now I understand adding ?$top=5000 at the end of my URL I can pull more ...
2
votes
0answers
22 views

Hybrid mobile SP2013 client

I already have a native iOS app that uses SP rest api without issues. My plan is to port this app into a hybrid one and make it cross platform using Cordova. Basically I want to mimic the native ...
0
votes
2answers
41 views

SharePoint 2013. App Part - Access Denied

I am working with SharePoint 2013 and I developed some app parts to show information in our intranet. These app parts get data from WEB API using jQuery, It works fine in Chrome, Firefox, but in ...
0
votes
0answers
71 views

Sharepoint 2013 Hosted App. Access-Control-Allow-Origin - Access Denied

I am working with SharePoint 2013 and I developed some app parts to show information in our intranet. These app parts get data from WEB API using jQuery, It works fine in Chrome, Firefox, but in ...
0
votes
0answers
43 views

SharePoint Workflow 2013 Get Item From Nested Dictionary

I have a sharepoint workflow dictionary in which I have following data: Userlist: [{"Id":3,"Value":"Tim Meier"},{"Id":2,"Value":"Hans Müller"}] This is what I get when I run the log and choose ...
0
votes
0answers
28 views

Sharepoint Online Update ReadOnlyField via JSON Fiddler

I am trying to update the readonlyfield to false of the created by column in sharepoint online. The URL directs to the field and displays the following <?xml version="1.0" encoding="utf-8" ...
0
votes
0answers
19 views

Increase Length of Stream Data from Client to Sharepoint Custom List

I am trying to update a column in a SharePoint 2013 Custom list but I am getting this error The maximum number of bytes allowed to be read from the stream has been exceeded. After the last read ...
3
votes
2answers
115 views

Character escaping in CAML query (REST call)

I use JS to create a CAML query. When it is generated, it looks like this: @v1 = {"ViewXml":"<View Scope='RecursiveAll'><ViewFields><FieldRef Name='ID'/><FieldRef ...
0
votes
2answers
147 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 ...
0
votes
0answers
64 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
56 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
72 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
185 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
58 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 ...
1
vote
2answers
297 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 ...
-1
votes
1answer
43 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
96 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
2answers
94 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
96 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
62 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
3answers
221 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
3k 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
341 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
193 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 ...
1
vote
1answer
96 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
194 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
231 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
553 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
105 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
75 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
90 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) ...
4
votes
3answers
12k 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: ...
2
votes
2answers
145 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
71 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
2answers
563 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: ...
1
vote
2answers
14k 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": { ...
1
vote
0answers
797 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 ...
5
votes
1answer
2k 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
1k 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
342 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 ...
3
votes
4answers
217 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
466 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 ...
2
votes
3answers
6k 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
530 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 ...