Category "json"

dataframe Spark scala explode json array

Let's say I have a dataframe which looks like this: +--------------------+--------------------+--------------------------------------------------------------+

Thumbnail of Blogger Post URL using Blogger API

I have an app that uses Blogger API to show the posts of a blog in a listview. Is there a way in which I can extract the thumbnail of the corresponding post URL

Parsing JSON File to array in PHP

I am currently trying to read co-ordinates from a JSON file and save them to an array for further use. However I am not managing to read the file successfully.

What is the best practice of streaming JSON objects in Nodejs, if it is bigger than 10M and split it into multiple streams?

I have a JSON object, it is a big object. I need to send (write) it as a Kafka message and it takes a lot of time. I need a mechanism to stream the JSON object

Get data from accuweather api url

I am trying to get json data from the accuweather API for a locationKey in PHP. The output is as: file_get_contents(https://dataservice.accuweather.com/forecast

Update Order custom Field value with WooCommerce REST API

I am trying to update the Order custom field value lworder. I used the below code but I did not find any update. Can anyone please help me with this? $api_respo

How to convert InputStream to JsonArray Object using Java

I'm trying to convert InputStream to JSON Array object but not getting the JSON object properly, please find my inputStream record below: {"id":4,"productId":99

Reload Serilog JSON Configuration on changes in .NET Core 2.1

I'm currently working on a ASP.NET Core 2.1 application and I use Serilog for logging. I want to reload the application settings file for my Serilog implementat

Moshi: Parse single object or list of objects (kotlin)

Problem How to parse either a single Warning object or a list of Warning objects (List<Warning>) from an API using Moshi? The response as a single warning

How to convert a json response into yaml in bash

I read data from a json file with jq. I wanna append the results into a yaml file, but I dont get it working. I am quite new to shell programming. My goal is to

Problems with parsing a JSON array objects into an object

first question i post here. I'm learning js and trying to do some APIs for a college project. I have the body of the API that passes a JSON object like that:

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.