Category "json"

Python: How to read multiple .NBT files and export to JSON?

I am a newbie when it comes to programming and i'm looking for a way to iterate through a directory filled with .NBT files and export them to JSON. I know i can

Parse JSON Data Array with Swift 4

I am using the following code. It only works if the JSON data does not start with a '[' character. It works fine for JSON data starting with a '{' character.

BotFramework-WebChat - Adaptive Card

Is there a way to add Onchange event to the adaptive card input field that is rendered in webchat (version V4). Example changing a quantity value (Adaptive card

Build a plot from JSON with plotly.js

I have built a plot using plotly.py and convert it to JSON file: plotly.io.write_json(fig, 'name.json') After creating the JSON file I need to build the same

How to send List of objects in a multipart request in flutter?

I want to send a List of ManageTagModel in a multipart request along with other models and files.. I am not certain of how to send this List of model.. This i

Angular 13 use proxy.conf.json in production

I use angular in version 13 with proxy.conf.json in development. I am try to use this proxy in production and generate a dist file with ng build but it's not wo

Adaptive Card: What is the best way to display an arbitrary JSON object?

I'd like to generate an adaptive card that contains an arbitrary JSON object inside. I anticipate that the JSON object will be shallow. Maybe it will contain ju

Parse JSON String into a Particular Object Prototype in JavaScript

I know how to parse a JSON String and turn it into a JavaScript Object. You can use JSON.parse() in modern browsers (and IE9+). That's great, but how can I t

VSCode - Rubocop - Settings.json - End of file expected

I am using VisualStudioCode with Ruby and Rubocop. After installation of Rubocop i found out i must change some of the settings in settings.json for Rubocop. Ho

Convert JSON format column to new columns

I have a sub-Yelp Dataset in csv, and attributes column is in json format. I'm trying to convert that column to new columns, but none of the relevant code on di

Python command-line one-liner using xmltodict to convert XML to JSON

I am trying to write a Python one-liner using xmltodict to convert an XML file to JSON. It seems like there's an issue reading from sys.stdin directly or as sys

How to use mock_open with json.load()?

I'm trying to get a unit test working that validates a function that reads credentials from a JSON-encoded file. Since the credentials themselves aren't fixed,

Parsing Nested JSON within Flutter

I am trying to parse nested JSON from the VirusTotal API but when ran it comes back as this error, I tried a different method found in https://app.quicktype.io/

Flatten a nested JSON? [duplicate]

I am trying to flatten the following JSON and flatten it hierarchically: https://justpaste.it/6e60p I am using pandas json_normalize function

Unable to Write json variable c# getting an error

I get an error when I try to serialize or update a json file. I just want to update the value of "balance" inside a json file and I got the idea here... I can't

How to get more than 10 search results from the IMDB API?

I am trying to suggest movies to an user who has entered a movie genre, e.g. "horror", "sci-fi", etc. For this, I have written a function that makes an API call

Azure Logic Apps - multipart/form-data failing

I'm trying to set up a Logic App that will post data to an AWS Bucket (Link) accepting content formatted as multipart/form-data. However, I'm not able to get a

Nesting json_agg() inside json_agg()

I have these 2 tables tasks and subtasks with these columns: Tasks id name description Subtasks id name description task_id I'm trying to do a query that would

how to create a new user with postman and assign group in keycloak?

I have this JSON to create a new user, which works for me, but it doesn't assign the group declared in the groups "groups":["APIs"] tab to the user json: {

Parse nested Json to splunk query which has string

I have a multiple result for a macAddress which contains the device details. This is the sample data "data": { "a1:b2:c3:d4:11:22": { "d