Category "json"

"SyntaxError: Unexpected token < in JSON at position 0"

In a React app component which handles Facebook-like content feeds, I am running into an error: Feed.js:94 undefined "parsererror" "SyntaxError: Unexpected

NSJSONSerialization to plain old object?

A lot of modern programming languages have JSON libraries that support encoding and decoding json to/from "plain old objects" - i.e. instances of classes that p

Collecting multiple sensor values from same Bacnet controller

I have managed to setup both BACnet and MQTT connectors and produce a data flow to both MQTT and dashboard. However I am unsure of the exact syntax I need to us

Snowflake parsing JSON and add aggrate column

have a json field [ {'id':'1', 'name':'test1', 'address':'123 Main St'}, {'id':'1', 'name':'test2', 'address':'1404 Burke St'} ] This is how the record

Use USDA Food API to search and get the nutrient facts by food name

I'm using an API to access the USDA food database. I crawled some food names from the menus of some restaurants. I want to connect these foods' names to Food Da

Terraform and tagging AWS resources from an external json file

If I had a json file like this: { "allMyTags": { "owner": "john", "department": "HR", "city": "New York" } } and my AWS provide

Saving utf-8 texts with json.dumps as UTF8, not as \u escape sequence

Sample code: >>> import json >>> json_string = json.dumps("ברי צקלה") >>> print(json_string

Container is not defined problem in React

I'm trying to learn React but this 'Container' is not defined and I don't know why I got this error, even though I did everything in the course Here is App.js i

How could I display all the text of a column in a list?

I am using share point online and there is a news list. The problem of this list is that it shows only few lines of text in the Body column. If I want it to sho

accessing object json.`params` (reserved keyword) from (dynamic)json in c#

I am calling an api which returns some json. The format of the received json is as follows: { "method": "depth.update", "params": [ true, { "a

"SyntaxError: Unexpected token < in JSON at position 0"

In a React app component which handles Facebook-like content feeds, I am running into an error: Feed.js:94 undefined "parsererror" "SyntaxError: Unexpected

C# Deserialize dictionary with complex properties names to JSON string

I have the following dictionary, each dictionary key potentially needs to be split by '.' and represented as json object/property/array etc. var data = new Dict

Using tweepy API to send timed direct messages

I've been messing around with tweepy as a way to get into learning basic python script writing. I figured out how to tweet via an edited text document to .py sc

How to query a user name by a email address in Jira Rest API

I want to create issues in Jira based on Outlook emails received using VBA. However, when setting the assignee/reporter via the REST API it appears that users c

PHP sends an empty Response Payload instead of JSON

Sorry if I'm not good at formulating questions or if this isn't a good question, but I've been trying for days and getting no progress on this and I'm ready to

How to convert JSON to Parquet in Apache Beam using Java

I am trying to convert Json Data {"col1":"sample-val-1", "col2":1.0} {"col1":"sample-val-2", "col2":2.0} {"col1":"sample-val-3", "col2":3.0} {"col1":"sample-val

Get a specific string from JSON string where "string" = x | Freemarker

My problem is as follows. I get a JSON string from an api call which looks like that: I always want to know the timestamp at which the package has been picked

How to count the length of value array in JSON

I have a JSON below: { "value": [ { "name": "504896c031d2fcb9", "location": "North Europe", "properties": { "state": "UNKNOWN",

How to write, update local JSON file in vue js

I have tried to use file system (fs module) but, not getting that how to use that FS module. could anyone explain with proper example. I was doing an example in

Java code to Convert JSON into a Map with specific fields as Key and values

I have a JSON as follows [ { "a": "John", "id": "6", "c": "val1" }, { "a": "Jack", "id": "6", "c": "