2018-10-22         Queena

Reference data join on stream analytics input not giving output

I'm trying to set a rule in Azure Stream Analytics job with the use of reference data and input stream which is coming from an event hub.This is my reference data JSON packet in BLOB storage:{ "ruleId": 1234, "Tag" : "TAG1", "metricName": "velocity", "alertName": "velocity over 500", "operator" : "AVGGREATEROREQUAL", "value": 500}And here is the transformation query in the stream analytics job:WITHtransformedInput AS( SELECT metric = GetArrayElement(DeviceInputStream.data,0), masterTag = rules.Tag, ruleId = rules.ruleId, ...

 json                     1 answers                     2 view
 2018-10-22         Glenn

Assignment screen disabled for Teams created via Microsoft Graph

When I create a Team (they are of the type Class for Teachers and Students) using the Microsoft Graph Education APIs, the Team appears in the Microsoft Teams app and the Assignment tab is visible. When I try to create a new assignment in the Teams app, the screen for creating an assignment is disabled, so it's not possible to create new assignments for any Team created via the API. Am I doing something wrong? Team created through the API (controls are disabled, no save and delete controls): Teams created through the Teams app (controls are enabled): Workflow:I create a...

 json                     1 answers                     17 view
 2018-10-22         Oswald

Add member to distribution list using Microsoft Graph

I am trying to add (and eventually remove) a member to a group using Graph. I can do it if the group is an Office365 group, but the issue is that I need to add it on a distribution list.I am doing a POST to https://graph.microsoft.com/beta/groups/my_group_id_here/members/$ref and passing the following body:{ "@odata.id": "https://graph.microsoft.com/beta/directoryObjects/user_id_here"}I get the following response:{ "error": { "code": "Request_BadRequest", "message": "Unable to update the specified properties for objects that have originated within an exter...

 json                     1 answers                     27 view
 2018-10-22         Nicholas

how to Create subscription for sent items folder using Microsoft graph api

following post request give an error when creating a subscription for the Sent Items folder using Microsoft Graphvar apiUrl = "https://graph.microsoft.com/v1.0/subscriptions";Request{ "resource": "me/mailFolders('Sent Items')/messages", "changeType": "created,updated,deleted", "clientState": "320a6f10-9c62-4e59-a395-8cd27941b597", "notificationUrl": "https://webhook.site/aaaa-6f49-4906-aaaa-e911f9391695", "expirationDateTime": "2018-08-28T12:53:41.4830081+00:00"}Error Response{ "error": { "code": "ExtensionError", "message": "Operation: Create; Exception: [Statu...

 json                     2 answers                     42 view
 2018-10-22         Wordsworth

How to deserialize the body of a brokered message in node js?

I am implementing socket.io server in node js (socketio.js) for my windows azure project. My worker role is in c#. And am sending a brokered message from worker role to socketio.js through service bus queue. But The object which am sending through the brokered message is not getting serialized into a json object. I dont know how to access the body of this brokered message in node js.I can show how am sending the brokered message in the worker role and how am receiving it in the node js script.The response body of brokered message(i.e message.body)@rrayOfTestModelHhttp://sch...

 json                     3 answers                     11 view
 2018-10-22         Basil

How to save files dynamically in xamarin forms

I want to save files dynamically in xamarin forms and convert the data contains in that file to json object in a button click .How Can I do thishere is my code to crate a file and write contents to that file public void CreateFile(LayerClass _data) { string _fileName = _path + _data.FileName; try { if (!File.Exists(_fileName)) { File.Create(_fileName); DownLoadData(_data); WriteLayer(); } } catch (Exception Ex) { Console.WriteLine(Ex.ToStrin...

 json                     1 answers                     89 view
 2018-10-22         Chad

Expand column with content from another url

I am using the following code in my own powerBI Data connector to get some date from a json document:{ "Customers": [ { "CustomerId": "8cd72f16-8d7b-48b0-90d9-71df011502c8", "CustomerTitle": "Test Customer", }}Code:GetCustomerTable = (url as text) as table => let source = Test.Feed(url & "/overview"), value = source[Customers], toTable = Table.FromList(value, Splitter.SplitByNothing(), null, null, ExtraValues.Error), #"expandColumn" = Table.ExpandRecordColumn(toTable, "Column1", {"CustomerId", "CustomerTitle"}, {"Custom...

 json                     1 answers                     88 view
 2018-10-22         Douglas

Handling empty rows/cells in JSON - Power BI Querying

Searched everywhere but couldn't find something similar to this.I got a table as below (a glimpse of it):customDimensions is the column that pulls the data in JSON format. However, there are some empty cells (as seen below) in the column. I tried to Parse the whole column into JSON but it is returning me errors in the blank columns as below: Therefore I tried an alternative way of first replacing those blank cells in the customDimensions to a generic JSON format input as {"Type":"Unhandled"} and then Parsed the column into JSON. This successfully got rid of the errors, but...

 json                     1 answers                     92 view
 2018-10-22         Payne

Change (map) JSON list shape - add tag to objects in TypeScript

I am trying to change in my Angular (TypeScript) project a JSON list received through a REST request.The initial JSON looks like this: [ { "id":1, "position":3, "articleNumber":6 }, { "id":2, "position":2, "articleNumber":7 }]I need it to become:{ "data":[ { "data":{ "id":1, "position":3, "articleNumber":6 } }, { "children":[ { "data":{ "id":2, "position":2, "articleN...

 json                     2 answers                     88 view
 2018-10-22         Gustave

Prevent from exposing jSON data - wp-json/contact-form-7/v1/

Can anyone help us, how to prevent exposing jSON values in WP Contact Form 7? I have copied a screen shot for reference. It impacts form validations if we stop the service via WordPress plugin - Disable Rest API. Also, I would like to know what are the major security issues by using this plugin along with below service URL.Thanks in advance for any suggestions. In the folder you need to "lock" create .htaccess file with the following content:Deny from all [XXX]I was able to fix it via Disable Rest API plugin. I have enabled only the option - /contact-form-7/v1/contac...

 json                     2 answers                     19 view
 2018-10-22         Benson

Flutter (Dart) Looping through JSON results - .length returns 0

I'm new to flutter and after some good progress got stuck on what i though should be a simple loop. I'm able to show a single result from the json, but unable to display them all. for(var i = 0; i < snapshot.data.posts.length; i++){ return Text(snapshot.data.posts[i].name + " - " + snapshot.data.posts[i].id + " - " + i.toString());}As this coded returns and outputs the first result of the dataset.Mr. Nice - 1 - 0The problems is that i can can't get it to output the rest of the results in the dataset. The external JSON which i'm parsing reads as follows (in full)[{"id":...

 json                     1 answers                     33 view
 2018-10-22         Harry

Camel Json to XML, what about XML entities?

Using Camel transformation, Json to XML,With <dataFormats> <xmljson id="xmljson"/> <xmljson id="xmljsonWithOptions" forceTopLevelObject="true" trimSpaces="true" rootName="root" skipNamespaces="true" removeNamespacePrefixes="true" expandableProperties="d e"/> </dataFormats>And applying the transformation with : <unmarshal ref="xmljsonWithOptions"/>I can indeed transform Json into XML, but there is no xml entities transformation,Typically, if some text was containing "&" this caracter, it is not rewrittent ...

 json                     1 answers                     36 view
 2018-10-22         Moira

How to access SuperObject object if key conatins dots (e.g. Ip address)?

The code fails to access JSON object if it's key contain dots.JSON:"TableTraps": { "": { "Vars": [ "alarmDescription", "alarmPositionUnit", "alarmChannel" ] }, "": { "Vars": [ "alarmDescription", "alarmPositionUnit", "alarmChannel" ] },}Pascal SuperObject code:TableTraps := LoadFromFile();TrapOID := '';trapInfo := TableTraps.O[TrapOID];Results in trapInfo == nil but I expect SuperObject instance.I've tried to wrap the json key:TrapOID := '"' + '1.3.6....

 json                     1 answers                     61 view
 2018-10-22         Tyler

Create a JSON by joining dataframes (parent & child)

I would like to create a json out of 2 dataframes (one is Parent and the other is child). Child records should be an array forming a nested JSONDf1 (Department):+----------+------------+| dept_Id | dept_name |+----------+------------+| 10 | Sales |+----------+------------+Df2 (Employee):+----------+--------+----------+| dept_Id | emp_id | emp_name |+----------+--------+----------+| 10 | 1001 | John || 10 | 1002 | Rich |+----------+--------+----------+I want the JSON to be created as follows:{ "dept_id":"10", "dept_name":"Sales", "employ...

 json                     1 answers                     18 view
 2018-10-22         Cherry

Excel to JSON (with VBA) Turkish character issue

I'm converting my Excel table to Json with VBA.But, when I look at the output Json file, the turkish characters don't look smooth. For example,in Excel table, "HAYRETTIN YILMAZ"in Json, HAYRETTÝN YILMAZin Excel table, "HÜSEYİN DURAK"in Json, HÜSEYÝN DURAKHow can I fix it?You can find my VBA code below:Sub deneme() savename = "deneme.js" Dim wkb As Workbook Dim wks As Worksheet Set wkb = ThisWorkbook Set wks = wkb.Sheets(2) lcolumn = wks.Cells(1, Columns.Count).End(xlToLeft).Column ' Var olan sütunun en sonu lrow = wks.Cells(Rows.Count, "A").End(x...

 json                     1 answers                     13 view
 2018-10-22         Jonas

Parse large binary data to JSON format

The problem that I'm facing currently is the server continuously is pushing binary data through TCP port, I'm able to read these data but the problem is when the data is too large my app is crashing because can't close properly the object.The application is built in node JS and I tried to use json-stream but without success.EXAMPLE:var client = new net.Socket();client.connect(PORT, HOST, function() { console.log('CONNECTED TO: ' + HOST + ':' + PORT); }client.on('data', function(data) { var readyToExplore = JSON.parse(data.toString()); console.log(readyToExplore);}The app ...

 json                     1 answers                     113 view

Page 1 of 467  |  Show More Pages:  Top Prev Next Last