Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
20 views

How to display an image in html via a json file using javascript

Hy everyone, I'm new to the forum and have a question about using a json file... I almost have what I would like to have except an image that won't show on my page, instead the path to the image is ...
ArnoL's user avatar
  • 1
0 votes
0 answers
4 views

Send json data to a kafka topic using telegraf

I am trying to send JSON data from a file into a Kafka topic using the Telegraf plugin. However, the format in the file does not match the format being ingested into the topic. I have tried different ...
Soumith Bharadwaj's user avatar
0 votes
0 answers
11 views

How to Efficiently Load Large JSON Data into ObservableCollection in .NET MAUI?

I'm working on a .NET MAUI application where I need to load a large volume of data from a JSON file and add it to an ObservableCollection. Currently, the application becomes unresponsive during this ...
Imran Mohammed's user avatar
0 votes
0 answers
11 views

Extract Data from JSON String in Google Bigquery

I am pretty new to Google Big Query the same I have solved in SQL Server but not sure where to start to extract the fields and also unnest the fields where there is an element within the JSON string. ...
Senthil P Nathan's user avatar
1 vote
0 answers
26 views

MutableList<T> not being serialized in Kotlin

I'm working on a simple chat server, using kotlin to learn it along the way I've defined the class to store any message as @Serializable data class Message ( var id: Int = messageCounter....
Prerit Vishal's user avatar
-4 votes
0 answers
23 views

How to get the information from the multiple API? [closed]

For an API url as below const URL = "apiaddress.com/n" where n is the number of posts and one number is added each time, how can I get the data? I have an API as below: const URL = "...
Reza Ta's user avatar
0 votes
0 answers
14 views

What type of Schema Markup is this?

image The first one that have answer is QA page schema structure but I can't find any type of the red marked schema structure. Its common in Google Support forum and other related communities also. I ...
Md Samim Akhter's user avatar
0 votes
1 answer
36 views

How to bulk load ~1M of JSON files into Redis?

Here is my current code in bash (based on https://redis.io/docs/latest/develop/use/patterns/bulk-loading): head=$(redis-cli -h $redis_server get .git-head) if [[ ! $head ]]; then redis-cli -h $...
mark's user avatar
  • 61.6k
0 votes
0 answers
12 views

Structure of the Solana block

I cannot understand how the JSON Solana blocks are structured, received, from https://api.mainnet-beta.solana.com rpc: Why are zero indexes of pre and post Balances different, but any other are ...
Router's user avatar
  • 1
-1 votes
0 answers
37 views

Invalid composer.json

I'm trying to add a classmap to my composer.json but I can't figure out why it is not working My composer.json looks like this { "name": "xxxxxxx/xxxxxx", "description": &...
user1262878's user avatar
0 votes
0 answers
28 views

How to pass bytes (base64) instead of string (utf-8) to Gemini using requests package in Python?

I would like to use the streamGenerateContent method to pass an image/pdf/some other file to Gemini and have it answer a question about a file. The file would be local and not stored on Google ...
geotolky's user avatar
0 votes
2 answers
57 views

Using curl and grep to extract data from a file

i have been trying for hours but with no luck, I want to extract the (id, remote_ip, listen_addr) and put it in a txt file I have managed to do so with curl -s https://pastebin.com/raw/gGt524CS | grep ...
user3371817's user avatar
0 votes
1 answer
63 views

Storing large external model as JSON

I am working with a large external data model, that I have no authority over, ie. I can't change modify the data structure. I need to store this data structure as a field in another record and store ...
MaltDew's user avatar
  • 137
0 votes
0 answers
13 views

How do I get rid of the "Missing key "override_liquid_settings"" error in my json. file. In my Minecraft Datapack

I edited the minecraft/worldgen/template_pool/village/plains/houses.json file to include a new custom structure. But the Extension "Datapack Helper Plus by Spyglass" gives me the error "...
Der Herr 102's user avatar
-2 votes
0 answers
32 views

How do I access nested JSON array values in Javascript? [duplicate]

I have a php file that generates some JSON. Then an HTML loads the JSON via JavaScript and tries to display some of the values contained in the JSON. I'm struggling with the JavaScript syntax to ...
Jakes Trahms's user avatar
1 vote
3 answers
94 views

Parsing text and JSON from a log file with three lines (request, response, record)

I have a .csv log file containing three json lines for each client. For example: {"name":"John","phone":"08847","politic":"on","ville&...
mikhailtugushev's user avatar
-1 votes
1 answer
42 views

How to achieve this design in flutter

So I am trying to redesign what is in the attached image. (https://i.sstatic.net/65jHd8zB.jpg) I have tried arranging the items in a stack then using a position widget to position the different ...
devDonald's user avatar
0 votes
0 answers
22 views

Chrome Native Messaging - Problems with communicating with C# native application

I am writing a Chrome Extension which communicates with a native application via Native Messaging. In my background script I've included the following to send a string to the native application: ...
Velvetthunder's user avatar
1 vote
0 answers
13 views

Update code to Joomla 4 which validates login from a mobile app

I am trying to update this code from joomla 3 to joomla 4 which validates login information stored in the joomla database from a mobile app. The information is passed by json from the mobile app to ...
user1701282's user avatar
-2 votes
0 answers
31 views

PHP JSON decode - how to get a specific value? [duplicate]

How to get a specific value from JSON decode? I have a following code: $obj = json_decode($ret,true); $balance = $obj['balances']['30']['available']; It works but only as a work around. How do I ...
Voyteck's user avatar
0 votes
0 answers
37 views

converting indexed Object response to JSON

I want to convert indexed Object response to proper JSON. I've already tried using JSON.stringify but no success. Here is the response: <html> <head> <meta charset="utf-8"...
Mobygo's user avatar
  • 63
-2 votes
0 answers
27 views

Dynamic Rules Framework in Javascript/Typescript [closed]

Our team is building a insurance suite digital web application for customer to purchase policies. We have state and policy coverage related requirements where we need to dynamically ask customer ...
user2696668's user avatar
-1 votes
1 answer
30 views

how to convert the result from openai call, convert it into json and write to .txt file?

I am very new to python and only know the basics, so basically I am calling openai and getting a response in return and want to write that response in a .txt file. I want to convert the response in ...
Lovish Bansal's user avatar
-3 votes
0 answers
45 views

Read a hex number when use python json.loads() [closed]

I have a dict like this: "{"name_index": 0x01}", I want to keep the hex value "0x01" after by json.loads(). But I can't do this, seems it didn't support a hex number....
user27179836's user avatar
-2 votes
1 answer
27 views

How to hide resp JSON data in network tab in order to maintain quiz apps? [closed]

When we call an API in react App in network tab the data is fetched and shown in response, but It shows the answers with the fetched data. How can I hide it? How can the data be hidden to the users? ...
Duraimurugan H's user avatar
0 votes
1 answer
39 views

Django REST Framework MultiPartParser parsing JSON as string

I am making a django functional based view where the request contains some JSON and a file. Using DRF's MultiPartParser is parsing the JSON section of the request as a string. what can I do to fix ...
Abdullah Shekfeh's user avatar
0 votes
0 answers
14 views

Problem escaping string inside JSON-LD with Google Tag Manager

To retrieve the description string from the meta tag: <meta name="description" content="Impara a creare dati strutturati senza l'uso di plugin"> I use the following ...
Andrea's user avatar
  • 183
0 votes
2 answers
27 views

How to efficiently parse a large gzipped JSON file with ijson without encountering "trailing garbage" errors?

I am working with a large gzipped JSON file containing review data, formatted as a list of JSON objects. Each object is separated by a newline character. My goal is to efficiently extract the ...
chebz's user avatar
  • 25
0 votes
0 answers
21 views

Mercado libre API (ID)

For example, when I make the following request: curl -X GET https://api.mercadolibre.com/users/1477536226/brands I receive this response: { "status": "LINKED", "cust_id&...
Matheus Roque de Brito's user avatar
-1 votes
0 answers
19 views

Serialize only specified fields/properties at serialization time [duplicate]

I have a POJO with lots of fields, like public class BigObject { private final int version; private final String name; private final SubObject subObj; private final Instant time; // ... } ...
EarthTurtle's user avatar
0 votes
0 answers
23 views

Comments in JSON file... json.decoder.JSONDecodeError: Expecting property name enclosed in double quotes [duplicate]

/tmp % cat test.json { //This is a comment "hello": "world" } /tmp % python3 Python 3.12.5 (main, Aug 6 2024, 19:08:49) [Clang 15.0.0 (clang-1500.1.0.2.5)] on darwin Type ...
notacorn's user avatar
  • 3,969
-2 votes
0 answers
35 views

Send curl through php [closed]

Hello everyone I want to send curl through php curl -X POST -u <username>:<password> \ -H "Content-Type: application/json" \ -d '{ "message": "Hello, world!&...
HAKAM IRAQI's user avatar
1 vote
1 answer
33 views

Swift JSON decoding error: Key not found for "id" in custom type AnimalGroup

I'm encountering a fatal error when trying to decode a JSON file into my custom Swift struct AnimalGroup. The error occurs when decoding the file classification.json, and it specifically complains ...
chairman's user avatar
0 votes
1 answer
59 views

ASP.NET Core Web API : convert json payload to one format

Some of the properties in the JSON are in camel case, while others are in snake case, such as re_broadcast_timestamp and corporate_actions. As a result, it's not binding the model correctly and ...
shivu's user avatar
  • 1
0 votes
1 answer
47 views

filter map objects using javascript

I have a map object with key value pair as shown below const input = new Map([ [ 0, { testErrorSummary: "ServiceC\nV4/\n\tcom.dmv.smp", appErrorSummary: '{&...
Aren Trot's user avatar
  • 473
1 vote
1 answer
27 views

Jolt transform for the object with the arrray

input payload is below and output should contain Others + an element from cloumn X. need a JOLT tranform for below { "Others": { "eventTime": "2024-09-05T01:50:05.861&...
jitendra rawat's user avatar
0 votes
0 answers
31 views

NullReference in JSonConvert although settings mention how to handle Null values, what to do? [closed]

I have following piece of code: JsonSerializerSettings settings = new JsonSerializerSettings(); settings.NullValueHandling = NullValueHandling.Ignore; string str_jobs = JsonConvert.SerializeObject(...
Dominique's user avatar
  • 17.3k
-3 votes
1 answer
40 views

gson won't return a linkedhashmap with a generics type [closed]

I'm using gson and trying to read a linkedhashmap object from a file. When I try the following code I get a generics unchecked exception: Gson gson = new Gson(); File backup = new File("backup....
Matthew Reading's user avatar
2 votes
1 answer
43 views

How to use batch script to replace environment variables inside a JSON file?

I am trying to substitute the environment variables in this following file with their respective values: some.json: { "verion": 3, "name": "some name", "...
Nnaji Obinelo's user avatar
-1 votes
0 answers
27 views

request.session['some_variable'] TypeError: Object of type Decimal is not JSON serializable [duplicate]

I´m updating some code from Django 1.8 and python 2.7 to django 5.0 and python 3.11, in the old version in some functions are make session variables that store decimal values and after that make a ...
M. Gar's user avatar
  • 887
0 votes
0 answers
26 views

Best approach for a javascript Lightbox on an image grid created using json

I'm working on my portfolio, and I want to create a Lightbox that activates when a user clicks on an image. The images are added to the dom via a javascript that fetches a json file with the paths to ...
aguesseb's user avatar
-1 votes
0 answers
38 views

Replacing incorrect quotes in scala/java

I've a dataframe which has column detail , the data for it looks like following, which is a invalid json and is a mix of single and double quotes , {'Pages':['Stackoverflow',"you'll send ...
gaurav mathur's user avatar
-5 votes
0 answers
33 views

The output of my code does not match these expected outputs [closed]

I need a solution to this # **main.py** from compare_prices import compare_prices laughs_coconut = 'https://scrape-sm1.github.io/site1/COCONUT%20market1super.html' glomark_coconut = 'https://glomark....
B.M.M. Yasas S.'s user avatar
0 votes
2 answers
62 views

PostgreSQL: When merging JSON objects with same keys, how do I append their values?

I have two arrays as shown below, as i concat both the arrays - the ST key value in Array1 is replaced by values in ST key values in Array2, Array 1: {"ST": ["Bin", "No", ...
Sarah's user avatar
  • 15
0 votes
0 answers
24 views

"Expected double-quoted property name in JSON at position 32"

I learn more about node.js and fastify when 'send request' the request return this message : "Expected double-quoted property name in JSON at position 32" how i know where is the problem? ...
user27208800's user avatar
0 votes
0 answers
13 views

Deserialize Json Array String in ASNA AVR

I have this JSON array in string form from where i serialize early in the API call (done in C#). I need to Deserialize it but I keep getting an error Cannot deserialize the JSON array (e.g. [1,2,3]) ...
Jgoo83's user avatar
  • 377
0 votes
2 answers
40 views

How can I ignore a specific value of a property?

I'm trying to figure out how I can ignore a specific value of a property using Mixin. For example, there is a class: class MyClass { String name; } I want to use a MixIn to ignore names with a ...
Alena's user avatar
  • 3
-1 votes
2 answers
43 views

How to get non repeated rows in postgresql [closed]

I have query like select billing_number, created, amount_total_sum, days, country, status, check_in_date, concat(elements->> 'isPossible', elements-> 'UTCDateFrom' ->> 'date', ' - ', ...
Rader's user avatar
  • 61
3 votes
1 answer
40 views

Creating JSON style API call dict from Pandas DF data

Scenario: I have a dataframe which contains one row of data. Each column is an year and it has the relevant value. I am trying to use the data from this df to create a json style structure to pass to ...
DGMS89's user avatar
  • 1,637
-1 votes
1 answer
43 views

How can I use sed to replace specific characters within a substring between delimiters?

I need to process a large json file, in which I need to change hyphens to underscore in values of a specific key, for example within the file I would change: { "key": ["test-value-1&...
gtrochimiuk's user avatar

1
2 3 4 5
7222