Category "json"

System.Text.Json unable to deserialize doubles properly without being affected by the culture

I have a problem that I checked some time ago and also posted on Microsoft Github since it seemed a bug, I'm speaking of years ago. I was checking if was solved

jmespath Select arrays only if they contain specific value

I have this JSON as input: { "users": { "alpha": [ "read", "annotate", "write", "delete", "manage" ], "beta": [

Unmarshalling Dynamic JSON Data With Overlapping Fields in Golang

Sorry If i'm posting a question that has already been answered, but I can't seem to find any similar situations on here. I have a websocket client that receives

How to extract and access data from JSON with PHP?

This is intended to be a general reference question and answer covering many of the never-ending "How do I access data in my JSON?" questions. It is here to

How to send JSON body from API Gateway without using Lambda in CDK

Is there a way to send JSON body as response for 'GET' method in AWS API Gateway without using AWS Lambda. Here JSON is constant. It will be same every time thi

How to read JSON that has values in parenthesis with data type?

I have JSON file built like the following: "key" : DataType("value") Example - [ { "timestamp" : ISODate("2022-03-10T13:50:51.688Z"), "some_field" : ObjectId("

Can I return a single backslash in a JSON response in FastAPI? [duplicate]

Seems like a really simple question and it's not clear what the correct answer is here. We understand that backslashes are a special delimiter

Google Blogspot (post-share-buttons) social media removed

There is a share button on my blog I would like to remove all social media and leave only functional (link). I can edit the HTML, but I can't find the code I ne

Remove empty elements from nested JSON

I have a nested json with an arbitrary depth level : json_list = [ { 'class': 'Year 1', 'room': 'Yellow', 'students': [

How to convert JSONObject to Map in Java

I get a JSONObject from the client and I want to convert it to a Map in Java Spring-Boot. Does anyone know a good approach with my data structure? Json Object:

Data structure handle as array

i'm use data structure to store JSON data Class node Friend ReadOnly position As Integer Friend ReadOnly position_Array As Integer Pub

How to create a JSON of a List of List of Any in Scala

The JSON output that I am looking for is {[[1, 1.5, "String1"], [-2, 2.3, "String2"]]} So I want to have an Array of Arrays and the inner array is storing diff

Put json data into table

I actually want to create a table with the data who the api return to me. The problem is that i can't print the data. The IdLangage have his column in the table

PHP: reading and parsing a nested JSON file

I want to use a json file as a kind of database. In it I have categorized file names and now I want to read them via PHP. { "settings": { "prefix": "pix", "

Creating employee in Xero PHP SDK

I have copied the sample code from the Xero developers site but keep getting an error with the DateOfBirth here is the code <?php require_once(__DIR__ . '/ve

Convert JS object to JSON string

If I defined an object in JS with: var j={"name":"binchen"}; How can I convert the object to JSON? The output string should be: '{"name":"binchen"}'

Multilines message into WhatsApp API Using Textarea, POST and json playload with PHP

i am using WhatsAPP API of One of Facebook Partner. I have a form with text area , Message content of textarea is POSTed to sendWhatsApp.php and inside of sendW

Cant read JSON file imported from MongoDB using pandas

I am trying to read a json file into a pandas dataframe, the import from MongoDB from completed as below client = pymongo.MongoClient("localhost", 27017)

How can I return two entity objects from web api?

What I am trying to do is getting two entity and returning from a single return using Json Object so getting this exception:- Self referencing loop detected for

Ajax chained dropdown not loading/working correctly on the LIVE server

I have a country, state and city chained dropdown which loads a state depending on the country and loads the cities depending on the state. The code works perfe