Category "json"

Parsing a string into a format to be able to get data from JSON structure

So i was struggling to get my code to recognise this string sent from the front end of my site to the backend as a method to get some data from my JSON file. Pl

How to export a MongoDB database to JSON?

It is possible to export a mongodb database to json on windows? I've already searched and the only thing that I find is to export collections. Is that the only

Can i make a RapidPro flow automatically by importing a Json file in it? How?

I had build rapidpro flow manually till now , now i want to automate it . What i want to do is convert a excel sheet (provided to me by my organization ) to jso

How to flatten a nested Json struct using Python databricks

Trying to flatten a nested json response using Python databricks dataframe. I was able to flatten the "survey" struct successfully but getting errors when i try

How to provide completely custom JSON for example in Swagger?

I have Java endpoint which receives json-deserializable object. Unfortunately, Swagger is unable to auto-generate good example for it. Is it possible to provide

How to use $when in an adaptive card template to find out the length of an incoming data payload and drop an input block

I have an adaptive card in the form of a JSON file, which contains an Input.ChoiceSet. This is provided with a data payload, which is dynamic and so it is not t

How to unmarshal an escaped JSON string

I am using Sockjs with Go, but when the JavaScript client send json to the server it escapes it, and send's it as a []byte. I'm trying to figure out how to pars

Jackson serialization/deserialization problems when using @JsonTypeInfo. Can someone explain to me how this is working?

Say I have these classes public abstract class Shape {} public class Circle extends Shape{ private int r; ... } public class Main { public static

Jolt transform JSON array keep rest of the fields

How to keep other fields in the Jolt transform JSON array, I am trying to use wildcard but fields are not added in the final output? Here is the example input I

Getting null values in jq bash

I have data.json which looks like this { "type": "AdaptiveCard", "body": [ { "type": "TextBlock", "text": "Monitoring", "wrap": true,

Can't cast okHTTP response as JSON

I am using okhttp 4.9.0 to make API requests, but seems that can't get the response body as JSONOBJECT. This is my code: client.newCall(request).enqueue(object

Parse results from JSON to a list dynamically

I do a JSON Request and get some information. func parseJSON(poiData: Data) { let decoder = JSONDecoder() do { let decodedData = try decoder.dec

How to convert a json response into a callable object in php?

I'm trying to convert the json response below in $response variable to a callable function like $response->getStatus() so it can return failed. Here's the re

Anyone have good examples of Terraform getting a remote json and assigning TF variables as a module to be consumed by multipe .tf projects?

So I'm looking for some good examples of a module where I can remotely grab a json file and assign TF variables inside of a module to be consumed by several dif

Azure Message Routing: JSON message in wrong format

I'm working with a raspberry pi zero and Python to send and recieve sensor data with Azure IoT. I've already created an endpoint and message routing to the stor

LEMON Graph library: Inheritance in Maps

in my PhD project, I want to create a graph using LEMON. The graph itself is directed and hierarchical meaning that the graph has a tree-like shape. The leaves

Valid JSON giving JSONDecodeError: Expecting , delimiter from variable not raw string

Let's imaging the response from the server { "overriding_parameters": { "jar_params": [ "{\"aggregationType\":\"Type1\",\"startDate\":\"

Import CSV file (convert to JSON format) into Deta Base (database)

I try to convert the CSV file into JSON format and import it into Deta Base (database). Here is a main.py code I run from a terminal. No error shows up, but Det

How to Unmarshall data to JSON with unknown field types

I have these 'structures' type Results struct { Gender string `json:"gender"` Name struct { First string `json:"first"` Last string `

how to update json array in java with existing json array value using java. Value are not updating in external json file

JSON file: [ { "name":"John", "city":"Berlin", "job":"Teacher" }, { "name":"Mark", "city":"Oslo", "job":"Doctor" } ] JSONParser parser = new JSONParser(); JSONA