360,195 questions
Score of 0
1 answer
82 views
How should a JSON parser represent JSON numbers in Go?
I'm implementing a JSON parser. According to JSON rules, a number can be an integer, a negative number, a decimal, or use exponent notation, like
42, -42, 3.14, 0.5, 1e10, 2.5e-3
I currently have a ...
Score of 0
2 answers
120 views
Setting multiple environment variables that already exist inside another variable
I'm using jq within a bash script in Ubuntu to create a list of environment variables. These variables will be utilized further on in the script.
This is a rough approximation of the JSON:
{
"...
Score of -1
0 answers
172 views
How can I detect that an integer literal will lose precision in JavaScript?
The JSON number type does not distinguish between integers and floating-point numbers; once processed by JSON.parse, all numbers become JavaScript Number types (i.e., IEEE 754 double-precision floats)....
Score of -6
0 answers
59 views
How optimize SEO for Alternative Manufacturer Part Numbers in a REACT SPA e-commerce website? [closed]
I am working on improving the SEOP of an e-shop built as a React SPA. (I know its bad).
The e-shop contains products that have one main Manufacturer Part Number, but some products can also have one or ...
Score of 2
1 answer
84 views
Running into build wheel error installing specific version of Frida, unsure how to proceed
I am currently trying to install a specific version of frida (12.2.1) and keep running into a build wheel error (see below for entered prompt & errors). I am working in windows 11.
I should also ...
Score of 0
0 answers
49 views
Ktor: io.ktor.server.plugins.BadRequestException: Failed to convert request body to class
I have a Ktor server that, upon receiving a request body.
val day = call.receive<Day>()
gives me the following error:
io.ktor.server.plugins.BadRequestException: Failed to convert request body ...
Score of 0
0 answers
71 views
Kotlin equivalent of Gson type adapter registration
I'm working on a project to migrate one of our libraries from using Gson to native kotlin serialization of Json. One of the obstacles I am running into is registration of default type adapters. Using ...
Score of 0
2 answers
115 views
How do I extract a valid command line(s) from a VS Code launch.json file?
A colleague of mine is working on some program in VS Code. He debugs/tests it by running it with a certain command line, encoded in his /path/to/repo/.vscode/launch.json file. The global JSON object ...
Score of 0
1 answer
112 views
How to implement generic deserialization methods with Kotlinx.serialization without changing the abstract class?
I'm trying to migrate some of our Kotlin libraries from Gson serialization to native Kotlin serialization. We have a provider interface class that looks like this:
interface JsonDependencyProvider {
...
Score of 3
2 answers
91 views
Why does JSON_VALUE return the object/array as text instead of NULL?
Working in OceanBase CE 4.6.0 (mysql mode). I have a JSON column and I only want rows where the value at '$' is not a scalar. On MySQL 8 that's just JSON_VALUE(col, '$') IS NULL.
Here JSON_VALUE gives ...
Score of 0
1 answer
198 views
Write multiple values to file in mounted local folder
My Pyscript app works, but it's not producing the desired result. The app will look for a JSON so I provided one below. When you click the Save PDFs button it will also ask permission to access your ...
Score of 0
0 answers
103 views
Is it possible to serialize a kotlin enum class without a custom serializer?
I'm working on a kotlin project where we are using an enum class to map some property values to corresponding string constants. I am investigating the possibility of replacing the hard coded mapping ...
Score of 1
1 answer
68 views
How to correctly implement JSON-LD LocalBusiness schema in HTML? [closed]
I'm adding structured data to a client's website to improve local SEO visibility in search results. Trying to implement the LocalBusiness schema using JSON-LD in the <head> of a static HTML page....
Score of -1
0 answers
112 views
How to store and retrieve an array from a JSON object?
I'm using Trino version 475, where apparently the support for distinct JSON objects were removed. Now, JSON is simply a varchar.
I'm trying to store some debug information as a JSON object on an ...
Score of 1
1 answer
302 views
"No overload matches this call" when using jsonwebtoken.sign()
I'm using Express and TypeScript. I'm getting this error when calling jwt.sign():
No overload matches this call.
Overload 1 of 5, '(payload: string | object | Buffer<ArrayBufferLike>, ...