Skip to main content
The 2026 Annual Developer Survey is live— take the Survey today!
Score of 2
1 answer
104 views

I'm trying to parse the response from OpenAI transcription API with streaming enabled. The request is: curl https://api.openai.com/v1/audio/transcriptions \ -H "Authorization: Bearer $...
Score of 0
1 answer
88 views

I have something like this: String data = new Gson().toJson(myCoolObject); myCoolObject has a HashMap. The resulting string ends up containing not just the keys and values of the map, but also the ...
Score of 0
3 answers
133 views

TL;DR: when my JSON array is converted to a list of Java objects, the null values in the JSON string is converted to 0 instead of staying as null. I want to keep them as null in the Java object. I ...
Score of 1
4 answers
274 views

I'm getting a 403 response when trying to use a presigned S3 put object URL in a Javascript fetch call. Here's what I've verified: The IAM role that generates the presigned URL can upload an object ...
Score of 0
0 answers
92 views

Use case Say I have an HTTP endpoint that constructs an immutable object then sends that immutable object to multiple sinks. Maybe I send it to a couple of message brokers, other HTTP endpoints, a ...
Score of 1
2 answers
126 views

I'm trying to create a Function App to be triggered by blob storage events, and would like to retrieve the file metadata fields to use as parameters to file processing logic. But when I declare @...
Score of 0
1 answer
80 views

I have this JSON snippet. My problem is the key under transactions{} in this example it is set to "Request ID 000002" However this is part of a response to an API request and that value ...
Score of 0
0 answers
54 views

Spark Application Running in Kubernetes Cluster. The Spark context is initialized by the Google Spark Operator. Spark dependencies are: "org.apache.spark" %% "spark-hadoop-cloud" ...
Score of 2
1 answer
298 views

Hardware/Software setup: IDE: Eclipse IDE Version 2024-12 (4.34.0) JDK: jdk-21 OS: Windows 11 Pro 24H2 CPU: 12th Gen Intel(R) Core(TM) i5-12600KF Background/Project Configuration I created a ...
Score of 3
2 answers
123 views

I want to make Gson deserializing numbers strictly, for example when Gson receives "123" and needs to deserialize it to Int, it must throw an exception and not automatically convert the ...
Score of 0
1 answer
62 views

Here is the serializer for java.security.PublicKey: public class PublicKeySerializer implements JsonSerializer<PublicKey> { @Override public JsonElement serialize(PublicKey key, Type ...
Score of 0
1 answer
75 views

I use gson.toJson and gson.fromGson methods. I have a class like below. @XmlType(name = "CBPR_CancellationReasonCode") @XmlEnum public enum CBPRCancellationReasonCode { DUPL("DUPL&...
Score of -1
1 answer
67 views

I'm using Gson to parse a JSON string like this: { "key": 1b } However, when I parse this using JsonParser.parseString(), the value 1b is interpreted as the string "1b" instead ...
Score of 2
0 answers
55 views

Consider I have a large (potentially infinite) array of JSON objects: [ { "id": 41, "name": "foo" }, { "id": 42, &...
Score of 0
1 answer
84 views

I have an app which saves a handful of lists for a to do list In android studio, the data saves and loads fine on a "medium phone api 35" type emulator, the ones that are just archetypes of ...

15 30 50 per page
1
2 3 4 5
655