Category "json"

How to access nested Json Object Value into JPA Entity Class

I have a payload like this { "eventId":"ep9_0579af51", "eventTime":"5/11/2022 5:50:58 PM", "eventType":"UpdateTransaction", "meta":{ "us

How to save a 'pos dictionary' type of object? (NetworkX)

I am using the networkx as nx. After creating a graph object (G), I use the data = nx.spring_layout(G) method to generate a dictionary (pos). Generating this po

how can I validate and process html form (taking in inpute from the ui login interface) using fiber framework golang programming language

please help me to take input with fiber golang framework <form action="/" method="POST" novalidate> <div> <p><label>Your ema

How do I build one dynamic JSON object using data from two different async functions?

I need to build one JSON object with data that I scrape from a website in two different async functions, below is my current code: const cheerio = require("chee

JSON text is not properly formatted. Unexpected character 'N' is found at position 0

I am new to JSON in SQL. I am getting the error "JSON text is not properly formatted. Unexpected character 'N' is found at position 0." while executing the belo

Unmarshal to custom interface

The usual approach for unmarshalling is like this: atmosphereMap := make(map[string]interface{}) err := json.Unmarshal(bytes, &atmosphereMap) But how to

What encoding Facebook uses in JSON files from data export?

I've used the Facebook feature to download all my data. The resulting zip file contains meta information in JSON files. The problem is that unicode characters i

How to remove an element from a json with ruby?

For this json structs: { "a_path": { "b_path": [ { "id": 1, "name": "a" }, { "id": 2, "name": "b"

How to define Typescript Map of key value pair. where key is a number and value is an array of objects

In my angular2 app i want to create a map which takes a number as key and returns an array of objects. I am currently implementing in following way but no luck.

Find the maximum value from JSON data in Scala

I am very new to programming in Scala. I am writing a test program to get maximum value from JSON data. I have following code: import scala.io.Source import sc

Unresolved dependencies rollup

I'm doing import file from 'file.json in a Vue component, but have a challenge when I run npm run build to bundle it with Rollup. It throws this error below an

How to get all UserNames/UUIDs Minecraft API

I'm trying to make a program with a functionality similar to NameMC but I can't get all of the users of Minecraft. NameMC is an Index of all of the Minecraft us

parsing airtable json to flutter podo

I'm new in flutter and I have issue with parsing JSON on HTTP response. I'm using Airtable backend, to store information about posts. These always contain image

Convert File in JSON Reply

I have to use JSON to query a remote site for files. The query specifies a customer number and the reply sends back files for that customer. I get the JSON re

Could not determine JSON object type for type "Class"

I got the following error while trying to add an object of type class to the JArray. Could not determine JSON object type for type "Class" Here is my code: pr

Restructure JSON before deserializing with Jackson

We have a service which currently consumes JSON. We want to slightly restructure this JSON (move one property one level up) but also implement graceful migratio

Exception: '<' is an invalid start of a value

I have a Blazor Webassembly project with a controller method as follows: [HttpGet] public async Task<List<string>> GetStatesForProfile() {

How to extract values from a String that cannot be converted to Json

While processing the DialogFlow Response object, I get the below given string as textPayload. If this is a Json string, I can easily convert it to a JSONObject

Rails: JSON round trip from database to TEXTAREA converts to string on second save

(Rails 5.2) My record with JSON is saving correctly to the (Postgres 9.4) database on CREATE but is getting reformatted after UPDATE, with carriage returns (\r)

Use same method for inertia response and json response Laravel Jetstream

I have been using Laravel powered API and VueJS powered frontend, two separate projects for single page application. Now I want to switch to Laravel Jetstream w