Category "json"

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]);

JSON Object in Azure Logic Apps

Someone please help. We receive orders in different formats and convert to JSON for processing and transformation to our API. Please see example: [ { "Ord

Modifying JSONObject in java , getting exception of ConcurrentModificationException

I have to modify each value for key inside JSONObject and I'm using recursion to iterate over JSONObject because it can be nested. But I'm getting exception in

How to create a specific result using JQ (jq parse json)

I have massive like this: 2254003131908096 39480500160 39763833120 2296334329577472 36713833920 37747166400 2297708719112192 39830499360 41430500640 Which JQ c

Get key values of nested json objects

I want to get the values of the keys of the next json file using org.json library: { "1": { "subject1": "MIS", "subject2": "DBMS", "

Insert Attributes in Parent Nodes in JSON with data.tree in R

I am new to tree.data, and have the following data: library(data.tree) library(jsonlite) # data Show <- c("The Flintstones", "The Flintstones", "The Flintst

i am receiving an error while returning `<IEnumerable<RiskValue>`.. ASP.NET [closed]

var result = JsonConvert.DeserializeObject<Risks>(jsonData); var finalResult = result.Value.Where(x => x.ID == 5).ToList