Category "nested"

How to make a dictionary of dictionaries with same keys in a loop [duplicate]

Hello i'm new to python and i'm trying to make a dictionary that can contain multiple dictionaries (depending on how many the user wants) and

Plotting nested lists seperately, which are inside nested dictionaries

I have a list consisting of multiple nested dictionaries and nested lists MyList = [{dict0}, {dict1}, {dict2} ... {dict2422}] dict0 = {'type': 'Feature', 'geom

Parsing Nested JSON leads to fromJson methods having a "The class 'Data' doesn't have an unnamed constructor." error

So I am trying to parse a Nested JSON from a GET request from VirusTotal but when I create the methods to parse the JSON for what I am looking for it is giving

How to convert array into JavaScript object

I have an array like this (which is similar to a JSON array) of length n: const mainData = [ { phrase: "Phrase 1", categorynumber: 1, optionnumber

Why my API-Plateform resource give me always and only 2 attributes in response?

I try to create a new API rest on monolithic project with symfony 4.4, api-platform 2.6.8, i have to use yaml configuration, but i have the same issue with anno

A function to obtain all leaf node properties of an object in an array of string in javascript

Request you to please help in building a function in javascript to obtain the mentioned output from the input given. INPUT : An object (possibly a nested object

How can I access and process nested objects, arrays or JSON?

I have a nested data structure containing objects and arrays. How can I extract the information, i.e. access a specific or multiple values (or keys)? For examp

Multiple/Nested NavHostFragments - Jetpack Navigation

I have two NavHostFragments, one in an activity which is the startDestination and another one in a Fragment. I can't seem to make the Bottom Navigation work in

How can I i get the same result as shown on the docstring

def make_str_from_row(board, row_index): """ (list of list of str, int) -> str Return the characters from the row of the board with index row_index

Get count distinct by nested objects from Elasticsearch

I have index with following mapping { "mappings": { "properties": { "typed_obj": { "type": "nested", "pr

How to insert records into a Nested HashMap?

I want to create a nested HashMap of: var myHashMap = new HashMap<String, HashMap<String, int>>(); And I want to insert records into the inner Hash

Is it possible to have multiple loops that run independently?

I am trying to insert 2 different ranges "x" amount of times based on the input from the user. The user chooses how many mounts they need "D22" and a range is c

JSON NESTED STRUCTURE - PENTAHO

I have this following json nested structure that i need to construct in pentaho: { "num_matricula": "4242424", "limit_date": "2018-01-01", "admission_date

JIRA Query Nested issue: This is how my nested query should be , not able to figure the correct method of building JQL

I have Action Item Tickets Project = x, issuetype = ActionItem But i need Actions items which is liked to Specific Epics issuetype = Epic, labels in (A1,A2) Onl

SSRS Nested IIF statements in expression throwing error

I keep getting an error [, is invalid. InvalidSyntax] when deploying this report in Visual Studio. I can't find the incorrect [ , ], also not sure if the bracet

python -- pandas dataframe to nested json with hierarchy level

To be able to generate a checkboxes, I need to convert pandas DataFrame to a JSON format. First, I have a pandas Dataframe: cast title type Daniel Craig Sky Fa

How to generate Pydantic model for multiple different objects

I need to have a variable covars that contains an unknown number of entries, where each entry is one of three different custom Pydantic models. In this case, ea

Autmapper map collections of different types to collection of another type with nesting

I am currently struggling with automapper.10.1.1 config. I have following types: class Response { List<Assignment> Assignments { get; } List<Pr

struct in union nested - understanding behaviour of type punning

The following code uses a structure inside a union inside a structure inside a union. #include <cstdio> union { char abcd[4]; struct {

how do I print the inner_inner_func_2 in case without changing the code?

def outer_function(): # this is the outer most function print("I am outer") def inner_func(): # inner function print("I am inner") def