Category "json"

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

Parsing JSON data in a good way [closed]

I have some JSON structured outputs that I would like to parse and get some values from it. But my attempts are not good and viable in deeper

Access array in json file in python

Here is a question from an absolute beginner python developer. Here is the challenge I have :) not being able to access the "status" in this json file: [{

Java + JSON: list of anonymous objects (key + value) with different key names

Maybe it's simple, but I'm stuck... I have an app using Spring Boot and springframework.web.client.RestTemplate, so there's Jackson on backseat doing JSON job a

need for json loader in webpack 5

I want to import .geojson file extension just like .json files (I don't need any special parsing). as I seen in webpack docs: Since webpack >= v2.0.0, impor

Can anyone help me on how to fetch MySQL table/s data in JSON format by querying itself which is similar to MS SQL Server

Below is the existing T-SQL code which generates table data in JSON format just by using the keyword FOR JSON PATH, include_null_value. How to implement the sam

Moshi: How to provide adapter for PolymorphicJsonAdapterFactory.withFallbackJsonAdapter while configuring Moshi.Builder

I'm trying to use PolymorphicJsonAdapterFactory for JSON which provides different structure depending on type field, like below. { "notifications": [ {

Escaping double quotation in javascript

I am getting an error when parsing what seems like valid json. The JSON string contains an escaped double-quote character inside of a string. I've condensed the

How to update a JSON array in a Java

I have a JSON file name abc.json Once I opened this file there is data like in square brackets. [{ "1" : "xxx", "20" : "ppp", "25" : "hhh" }] Here in this keys

out of memory error when reading file with json.loads in python

hi i create a file and fill it with below code: i have some lists which i fill them and write them in file. each list will be written in one line. import json

How can i parse php functions from JSON string variable?

I want to extract and run PHP functions from a JSON string variable. my string variable is something like this : $str = '"field_table_id": { "element_name":

jsonpath multiplication operation over entire object

I have an object of the basic structure: [ { "a": 1, "b": 1, "c": 1 }, { "a": 2, "b": 2, "c": 2 }, { "a": 3, "b": 3,

Click on folium multipolygon overlays and recive a name of active layers

I have many GeoJson layers in the folium map, some are overlapped and some are not, at one point. And I would like to know how I can click on the map and receiv

JQ - Get specific values under a key based on variable filter

So for class I have to make an shell script (BASH) that uses JQ to display a superheroes secret identity and powers. It has been a pretty fun course. The script

How can I calculate Average in Nifi?

How can I calculate the average of an attribute in nifi ? I am using the UpdateAttribute processor. I have 4 attributes that should be added and divide by 4 but

Two autocomplete function in a single input text

I have two autocomplete function , that work fine for different textboxes , I want to add these two two autocomplete function values in single text box , 1st fu

Transform JSON into required format

Here is my input JSON [ { "date": { "value": "2022-05-01" }, "parent": { "value":

converting one form of json into another form of json object using javascript / node js

here data1 and order of content get changed everytime that why I used switch statement I am running a function by passing value like this parser(values[key]);