Category "json"

How can I find the value from another value in the same line with JavaScript (JSON)?

I am trying to get the "correctAnswers" from a number. Here a is sample of the JSON: { "questions": [ { "number": 3, "question": "☀ʊ

MQTT message is not received because of object in object

Libraries: <PubSubClient.h> <ESP8266WiFi.h> "ArduinoJson.h" When I send this JSON, the message is received and I can do things with it: {"topic":"d

How can I convert from a{a{} b{}} to a[a[],b[]] using php preg_match?

Group test { Group test1 { #-# Type Val 1 typ1 10 2 typ2 10 3 typ3 10 } Group test2 {

Continuously Fetch API For new data React Fetch

I've a dynamic json that changes value continuously. i want to draw chart with that data so i stored the dynamic data to array then draws chart with that array.

Using Karate, how do I loop though a json to pick up the value for a key based on another key in that json block?

Below is the JSON response I get from which I want to extract y1. Before getting the response, I know x1 already but I don't know y1. So for that particular x k

change the json object value

{ "onboardingInformation": { "apiInvokerPublicKey": "string", "apiInvokerCertificate": "string", "onboardingSecret": "string" }, "notification

jq - return array value if its length is not null

I have a report.json generated by a gitlab pipeline. It looks like: {"version":"14.0.4","vulnerabilities":[{"id":"64e69d1185ecc48a1943141dcb6dbd628548e725f7cef7

JsonElement and null conditional operator (KeyNotFoundException)

I have a JSON object that I get from API and I need to check for error in the response of the JSON. However, when there is no error the error value is not prese

Is there a way to cast a string of only hh:mm to Date in Javascript

I have a business hours object in a mongoose schema that represent a date. I'm passing a json object and retrieving the to parse to Date as string. I wonder if

Add items to sharepoint list from parse json if missing

I have two lists, one is 8 items that are in a parse JSON, the other is a Sharepoint list with 3 items (Get items from Classes List), these lists have a unique

Flutter: convert future to stream

I am getting data as Future from my json API. And use my Flutter Mobile app. Here is my code for getting data from API- import 'dart:async'; import 'dart:conver

Issue in creating recursive JSON hierarchy tree

I have input data in flatfile format. I have written my javascript code to create recursive hierarchy JSON tree. I am not getting expected tree (highlighted bel

Go lang decode io.read JSON v.s. unmarshal giving different results

I have a handler like this: type Location struct { Lat float32 `json:"lat"` Lon float32 `json:"lon"` } func handleJSONLocation(res http.ResponseWriter

PHP Get value from JSON [duplicate]

Let's say I have this JSON: { "achievement": [ { "title": "Ready for Work", "description": "Sign up and get validated",

json load fails for nested json in kinesis firehose stream

I am trying to stream cloudwatch metric using kinesis firehose to S3. I am using Lambda python function to manipulate data. My major issue is the nested payload

Issue reading a variable JSON in Azure Data Factory

My pipeline receives the Path and the name of a JSON file. This is part of the flow that I created: The lookup step is used to read the JSON File and later I n

Value con of type java.lang.String cannot be converted to JSONObject

I just got an error at runtime. I understand the problem, but I could not fix it. This is my first time working with Volley and a MySQL database. I want to save

Multipart Form - 400 Bad Request

I'm having some trouble with a an API request I'm trying to make. Here is my POST request URL: https://platform.devtest.ringcentral.com/restapi/v1.0/account/~/e

Create a QR generator API for Ruby (2.2.2) on Rails

I have a main Ruby on Rails app, which generates links and associated PDF files. What I want is to generate a QR code for each one of the links, so I can paste

Is there a way to dynamically filter the JSON?

I am searching a way to filter the JObject according to the request from URL. Second code block works as expected and removes the "Id" column from response: My