Latest Questions tagged Json

Browse all latest questions tagged Json

10
Votes
Published 24 Apr, 2022
Python - Pandas DataFrame: normalize one JSON column and merge with other columns

I have a pandas DataFrame containing one column with multiple JSON data items as list of dicts. I want to normalize the JSON column and duplicate the non-JSON columns: # creating dataframe df_actions...

21
Votes
Published 16 Apr, 2022
Javascript - How to send JSON object as JSON String with Postman?

I want to send a JSON request but problem is I need to send my userPropertiesAsJsonString field as JSON string. How can I send userPropertiesAsJsonString as JSON string? { "User" : { "u...

3
Votes
Published 24 Apr, 2022
Javascript - How to pass a queryset from django to javascript function?

I want to pass a queryset from a view to a javascript function throught the template: my view.py: def myview(request): lista=Mymodel.objects.filter(tipo=mytipo) context_dict['lista']=lis...

0
Votes
Published 02 Dec, 2022
How to correct bad sql grammar when passing data?

This is my JDBC file with a the following sql query: private static final String UPDATE_QUESTION = "UPDATE Quiz SET type=?, questionIndex=?, choiceNum=?, question=?, choiceA=?, choiceB=?, choiceC...

87
Votes
Published 24 Oct, 2022
Java - POST array in RequestBody to Spring Controller as List of Objects

I'm fairly new to Spring, and I've looked at many posts about similar scenarios, but I have yet to figure this out. I'm trying to alter an existing (working) endpoint in my project to pass an array...

4
Votes
Published 24 Apr, 2022
Python - How to encrypt JSON in python

I have a JSON file. I am running a program, in python, where data is extracted from the JSON file. Is there any way to encrypt the JSON file with a key, so that if someone randomly opens the file, it...

94
Votes
Published 25 Oct, 2022
Java - com.networknt json-schema-validator not checking Unknown keywords in json

I am using json-schema-validator for validating the requests. It is validating fine. But, Request contains some invalid objects, it not throwing any error. Schema { "$schema": "http://json-sch...

1095
Votes
Published 24 Apr, 2022
Python - How to prettyprint a JSON file?

How do I pretty-print a JSON file in Python?

64
Votes
Published 16 Sep, 2022
Java - How to upload a json file in mongodb using Java?

I am trying to upload a big JSON file(newclicklogs.json) into mongodb using Java. Here is how my JSON file looks like: {"preview":false,"result":{"search_term":"rania","request_time":"Sat Apr 01 12:4...

40
Votes
Published 09 Aug, 2022
Jquery - Create Image based on JSON output

I need help to create set of images via JSON in ASP .NET MVC4. Is it possible to do? My working code is following and I have no idea how to integrate that functionality. Thank you for any help! [...

37
Votes
Published 23 Apr, 2022
Javascript - How can I print a circular structure in a JSON-like format?

I have a big object I want to convert to JSON and send. However it has circular structure. I want to toss whatever circular references exist and send whatever can be stringified. How do I do that? Th...

40
Votes
Published 31 Aug, 2022
Python - Reading all json files in a directory

I have multiple (400) json files containing a dict in a directory that I want to read and append to a list. I've tried looping over all the files in the directory like this: path_to_jsonfiles = 'Trip...

14
Votes
Published 07 Sep, 2022
Java - Can the JsonProperty required value be conditional?

Is it possible to have the @JsonProperty required dynamically set or set at call? The reason behind this... I'm generating json files which describes a schema and defines What are the required fiel...

0
Votes
Published 01 Dec, 2022
How to sum multiple columns?

my question is: is it possible to sum multiple columns and get the total of every column? I'm using this query: SELECT borrower, SUM(collateral_amount) AS collateral_amount, SUM(withdraw_amount) AS wi...

109
Votes
Published 09 Aug, 2022
Jquery - how to get two arrays from php using json,jquery ajax?

I want to build a graph in jqchart where i need to get two arrays Now i want to perform operation as given below.Which is giving error ofcourse. html $.ajax( { type: "GET",...