Category "json"

How to set precision for json_real while doing json_dump using jansson library

If a double value of 8.13 is passed into json_real and dump the json i see that its printing 8.1300000000000008, Is there any way to get 8.13 or 8.1300000000000

read onedrive api errors

I am current using the following to try and create an upload session with the onedrive api HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url); requ

Discord webhook post to channel thread

How does one use Discord webhooks to post to a channel thread, not the channel itself? For example, I have a text channel called videos in which are a number of

How to update few fields in JSON file and again read the JSON with updated values in selenium using Java

How to update few fields in JSON file and again read the JSON with updated values in selenium using Java. Below is my JSON : I want to update { "DemoFileJson

OpenSSL BIO_read is wrong

This is the code how I am reading the response from my HTTPS request: int len = 0; f = fopen("response.txt", "wb"); do { char buff[1534]; len = BIO_read

Filter out all occurrences of given properties from json object

I'm using PowerShell to extract data from an API call, update it and then pass it back to the API. What I would like to know is whether or not there is a simple

How to parse json data in a column with Druid SQL?

I'm trying to parse json data in a column with Druid SQL in Superset SQL lab. My table looks like this: id json_scores 0 {"foo": 20, "bar": 10} 1 {"foo": 30, "

html5 validation api gives an empty array of messages if a markup is wrong

Trying to validate my html5 markup by clicking on a button and using the w3c validator. The code source is from here. so my code is like this: $('.btnw3').on('c

Json file was not found in Android

I am developing a game for mobile and can't create a normal save system because when playing on the phone the error is logged: Could not find the file. I use th

Split data in JSON file based on a key value using java

I have a json file with which has an array of product items i want to split them based on the category of the item, This is my json file looks like, { "item

Manifest: Line: 1, column: 1, Syntax error

This is the hosted url: https://serviceworkerspike.azurewebsites.net/ - Doesn't work anymore I'm using Vuejs to create a PWA as a school project, and whenever I

jq error (at <stdin>:25): Cannot index string with string "data1"

I have a json file with data as below : { "0cef7017-e6af-4c92-9e7c-4db1d7afc733": { "Show": [ "TEST1", "TEST2" ], "data1": 12345,

how to loop through json response data using ajax jquery?

I'm trying to loop through a json response with ajax jquery but I can't display the result. Here is the code Im using: data.php function platformsList(){ $q

Extract all records from a JSON column, using JSON type

I have a couple tables (see reproducible code at the bottom): tbl1_have id json_col 1 {"a_i":"a","a_j":1} 1 {"a_i":"b","a_j":2

Style neighboring countries Google maps

Does anyone know if it is possible with the styling wizard to give neigh-boring countries a different color. I want to highlight a certain country. We use the G

JQ map objects to array

I have this input data: [ { "attributes": { "created": "2021-10-18T12:02:39+00:00", "enabled": true, "expires": null, "notBefore":

ASP.NET MVC Core Consuming Web API with Arrays?

I am having difficulty and although I thoroughly (I think) researched the web, including here at SO, I cannot seem to find what I am looking for -- or I am bein

What is use of the annotation @JsonIgnore?

I'm joining tables with one to many cardinality, the classes I'm using refer to each other. And I'm using @JsonIgnore annotation with out understanding it deepl

How to save JSON parsing values to an array in ArduinoJson

Arduino users, help pls! Hi guys! For example, I have a JSON document for parsing ArduinoJson: { "id": [ 1, 7, 32, 9656 ] } I need to save

Formatting DateTime in ASP.NET Core 3.0 using System.Text.Json

I am migrating a web API from .NET Core 2.2 to 3.0 and want to use the new System.Text.Json. When using Newtonsoft I was able to format DateTime using the code