612 questions
0
votes
1
answer
122
views
Parsing JSON array in Fluent-Bit
I am able to parse JSON like string that looks something like this:
{"response":"{\"key1\": \"12345\", \"key2\": \"abc\", \"time\": \&...
1
vote
0
answers
196
views
How do I convert a raw XML column to JSON in native SQL on Snowflake?
I have a Snowflake table with a column MY_XML.
(This is listed as an object type - is that normal?)
I would like to convert the column elements to JSON so that I can unlock the more-straightforward ...
1
vote
0
answers
64
views
Big Query, SQL, Dynamic Key
I need to get the start and end time for each row. The response looks like below. With big query I cant concat keys dynamically. How to do it?
Take the first key value pair in the menus dictionary ...
0
votes
2
answers
76
views
Classic ASP and json2.js: how to access keys with special characters?
In this answer: https://stackoverflow.com/a/1021848/5280471 it is suggested to use a "language-wrapping" technique to implement JSON parsing by importing a json2.js JavaScript file like so:
&...
1
vote
1
answer
39
views
JS works embedded in Flask template, but not in separate file
Good afternoon!
I am working on a Flask application. In one of the templates (HTML file) called reserve.html, I have a block of embedded JS that works perfectly fine. When I try to move it to a ...
0
votes
1
answer
306
views
parse json formatted string in Impala
I have a table with multiple columns, one of which is a json formatted string. Sample data is shown below. The name of the column is json_data
{"A":{"B":"b","C"...
0
votes
1
answer
303
views
Skip lines with JSON document that cause "ValueError: Unexpected character found when decoding object value" in pd.read_json(..., lines=True)
Consider a document btc_transactions.json that contains the following data:
{"txid":"00a5b60bf38d0605a7ed65c557722e42c1637e1dade80e37b7fc73cea3b67d9b","consensus_time":&...
0
votes
1
answer
519
views
JsonOutputParser error while querying through create_retrieval_chain in langchain
I am creating a django API where it takes a pdf doc and using RAG, a query is made to the doc and the output is generated via LLM. I want the output as json and I am using jsonoutputparser but I am ...
0
votes
2
answers
222
views
Parsing large JSON File being used as data for postgres database
I have a large (~65,000 lines) JSON file which is being used as data for a prisma postgres database in a Next.js project I'm working on. The file contains entries like so:
[
{
"NativeClass&...
0
votes
0
answers
76
views
JSON Parsing from a log file
I'm working on a JSON parser which should be able to read valid JSONs from a file, the problem I'm facing is there might be more than on JSON in a file(one line containing multiple JSONs or one JSON ...
0
votes
0
answers
42
views
JSON parsing isn't working after enabling Proguard
JSON parsing isn't working after enabling Proguard . I have activity like this
package com.alamart;
import android.content.Context;
import android.os.Bundle;
import android.widget.TextView;
import ...
1
vote
0
answers
23
views
boost::property_tree not deallocating memory [duplicate]
I am using boost::property_tree to parse a json file(~350kB), with boost 1.74 on Ubuntu 22.04.
After trying to parse a json file into a ptree, when ptree gets out of scope it seems not to be ...
0
votes
1
answer
92
views
Read json file and parse the data key and value using flutter
I'm currently trying to read json from azure blob storage which I'm able to do.
Now I want to parse the data and display or print the data in Flutter (dart language).
Below is the code.
Future<...
0
votes
1
answer
106
views
Getting garbage data when getting data from UDP socket
So I have a sender program(written in python) that send a API response to this c++ application using UDP socket.
Below is python code that send data :
# Function to send data via UDP socket
def ...
1
vote
1
answer
1k
views
jq - Cannot index string with string "key"
I have a JSON file, which contains similar records like following:
{
"timeZone": "+0200",
"deviceCode": 202590286,
"type": 8,
"version&...
0
votes
1
answer
182
views
Deserialisation using Qurkus.io and rest-client-reactive-json not working
I am using documentation given here to connect with another service. So far the connection to another service works fine. When I get the response as a string it also works fine.
But it fails to ...
0
votes
0
answers
38
views
C# JSON.NET convention that follows underscore gives me headact [duplicate]
I have a post method response json body exactly like this:
[{
"_routeId": "657a2fe455905539f9eed1a5",
"distance": {
"text": "859 km",
&...
1
vote
0
answers
124
views
Reliably clean/convert all unicode/emojis for JSON parsing
I'm seeking the correct sequence of Python decode() and encode() functions required to result in completely clean and parse-able JSON, no matter which combinations of unusual ASCII/unicode/emoji ...
1
vote
1
answer
476
views
How to parse nested information in JSON using jsonpath_ng
I have the following JSON, which came from an API response:
{
"expand": "names,schema",
"startAt": 0,
"maxResults": 50,
"total": 3,
...
0
votes
3
answers
294
views
how to access to the data after parsing JSON data in VBA by JsonParse?
I would like to parse a JSON data in VBA and check how many books there are.
With the hint from GPT, I use this code to parse JSON,
Public Function JsonParse(jsonStr As String) As Object
With ...
3
votes
0
answers
411
views
Does jsoniter-scala have an equivalent to jsoniter's `Any`?
Does jsoniter-scala have an equivalent to (Java) jsoniter's Any? I'm talking about the facility described here. There is no Any in jsoniter-scala, and I can't find an equivalent in the jsoniter-scala ...
1
vote
0
answers
51
views
Axios returning parsed JSON data in ReactJS with an undefined value for file key
I am having an odd issue where my Laravel API is returning JSON data to my react front-end via Axios and then Axios is parsing the data and returning an undefined value for a specific key "file&...
0
votes
1
answer
113
views
Not able to Parse a valid javascript Json object with \" to snowflake table using parse_json [duplicate]
I have the below json object as a json string
{
"type": "employee",
"details": [
{
"key": "name",
"value": &...
-1
votes
1
answer
568
views
flutter error: type 'String' is not a subtype of type 'int' of 'index'
I want to serialize data from json data using open api to Dart. However, the error continues, such as type 'String' is not a subtype of type 'int' of 'index'. I need to return the string, but I think ...
1
vote
1
answer
491
views
How to handle JSON conversion from Karate feature file to Java class?
I have a karate test and lines like this :
* def schema = read('schema.json')
* def response = read('response.json')
And def jsonValidator = Java.type('feature.JsonValidator').isValid(parseSchema, ...
0
votes
1
answer
101
views
How do I decode json Dictionary into a struct that I want and use that data to populate my Table View
I have a data model which is a struct and I have an API which has JSON dictionary. I need to populate my table view cells with the values in the dictionary. I have already created an array containing ...
0
votes
2
answers
129
views
Parsing dynamic json values in Flutter
In my flutter application, I am receiving json response and can also able to parse it easily.
But At a point or a key named "data" in json response giving me dynamic value as below:
Sometime ...
-1
votes
1
answer
1k
views
How to add data in existing json object in java using Jsonpath
below is json string :
{
"Data1": "",
"Data2": {
"id": 1234
},
"Data3": [
{
"id": "id2",
"price&...
1
vote
0
answers
192
views
com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot construct instance of
How to Serialize and de-serialize below object using jackson library ?
public class Notification2 implements Serializable {
private String eventTypeName;
private TerminationPoint_T tpObj;
...
1
vote
1
answer
249
views
How to handle invalid JSON strings while parsing them in query to ignore them and return only successful records(rows) in the resultset
We are using AWS Athena tables to store order and product information. We have a JSON string in a column called line-items in orders table. It is not a valid JSON and we are converting into valid JSON,...
2
votes
1
answer
93
views
How to wait in R for a complete JSON before using it
EDIT
I have a Shiny app where I need to make successive requests to an API. Every request needs the preceding one to be completed to prevent the not all data was parsed (0 chars were parsed out of a ...
-1
votes
2
answers
564
views
How to use JsonNames to parse multiple names for JSON field in Kotlinx Serialization?
How to use JsonNames to parse multiple names for JSON field in Kotlinx Serialization. For normal data class it works fine
@OptIn(ExperimentalSerializationApi::class)
@Serializable
data class Project(@...
0
votes
1
answer
109
views
JSON Schema - how to get the same result from different data types
I have stumbled here upon several answers regarding handling multiple types of data in JSON, but none of them helps me in my concrete case. I am a beginner in JSON, so any help is highly appreciated.
...
0
votes
2
answers
71
views
Correct use of JSON parsing function
I am learning to work with JSON. This is my first time doing this.
I get the JSON from an API call with this code:
if (response.statusCode == 200) {
var json = response.body;
// ...
1
vote
1
answer
152
views
How to parse nested array in JSON using gojsonq
I have a JSON and want to parse the nested array using https://github.com/thedevsaddam/gojsonq
{
"total": 2,
"page": 1,
"pageSize": 50,
"data": [
{
...
0
votes
3
answers
276
views
How to parse json string data having symbols as key instead of string in Ruby?
Here's the json string example
json = "{:status=>\"ok\", :hitcount=>\"1\", :request_date=>Wed, 10 Oct 2019 00:00:00 +0000}"
I have tried below mentioned snippet ...
1
vote
1
answer
52
views
exploding the struct with no arrays pyspark
I have json data like
{
"labels1":
{"A":1,"B":2, "C":3},
"labels2":
{"A":1,"B":2, "C":3},
}
and I want 3 ...
0
votes
1
answer
54
views
Parsing in Java don't work with JSONArray
why does my Code not work
JSONArray dataObject = (JSONArray) parse.parse(String.valueOf(informationString));
It always give me the Error Code
java.lang.ClassCastException: class org.json.simple....
1
vote
1
answer
321
views
DEFAULT_PATH_LEAF_TO_NULL in jsonPath not working
JSON
{
"abc": {
"country": [
{
"city": "JODHPUR"
}
]
}
}
JSONPath Configuration
private static final Configuration ...
-1
votes
1
answer
982
views
Parsing JSON from C# API in Unity
I have encountered a problem while trying to parse a JSON string in Unity. I wrote a API in C# ASP.NET to communicate with a database. When I try to parse the JSON string from my get request gives me ...
0
votes
1
answer
499
views
How to fix lexical error: invalid char in JSON text. when trying to parse from JSON
I have a problem with this RAW JSON generated from a script within a webpage of an ecommerce.
I need to parse it and extract information about the product
The same code works for other pages of the ...
0
votes
1
answer
907
views
How to Parse a String to Logical Condition in C#
I am looking for a nuget package which could help me to parse a string to a logical condition in C#. I have a configuration file in json, where users can configure the logic as follows.
"...
0
votes
1
answer
19
views
Use of json_fprintf from polar.h to print Integer and Char arrays
I am creating JSON files using the parser frozen.h library. Everything works fine except when i try to parse arrays.
This is my code:
int installation_info_graphs(int roll_array[], int roll_len, int ...
0
votes
1
answer
108
views
How to upload a json.encode string to firebase (or how to parse stream response for multiple iterations of one string)
Until now, I have been uploading my firebase database as follows:
try {
_firestore.collection('activity').doc(docID).set({
DateFormat('MM-dd-yyyy').format(dateTime): {
...
3
votes
1
answer
5k
views
JSON Object to Array with Attribute Name using Power Automate
I am trying to create columns in a SharePoint List from JSON using Power Automate flow.
I managed to create a column with a "Send an HTTP request to SharePoint" manually using : { "...
-1
votes
3
answers
92
views
Unable to get the key value while json parsing in swift
I am using below code to parse json from API
struct ResourceInfo: Decodable {
let id: String
let type: String
// let department: String. -> Unable to get the value for department
}
...
-1
votes
1
answer
2k
views
Json Parsing and assign to DTO
Issue while parsing JSON into DTO.
JSON response is :
{
"content": [
{
"id": 350,
"reg": "FA-2001",
"Email": "abc@gmail....
0
votes
0
answers
22
views
How can I parse this json with Python? [duplicate]
I have a json file and I need to parse it to the jsons seperatly. Here is the json:
{
"type": "FeatureCollection",
"features": [
{
"type": "Feature"...
0
votes
1
answer
521
views
Poco::JSON::Parser throws Poco::JSON::JSONEception error
I am trying to parse a JSON object with poco parser. I am running into a Poco::JSON::JSONException at xxx memory location. I don't understand, what am I supposed to do to get past this?
Here is the ...
0
votes
1
answer
618
views
How to fetch value from api response using rest Assured
I am new to rest assured. I have a response json as below. where I have multiple nested json in an array having details of spends on particular Merchant. I need to get the spend value of Netflix only. ...