Showing posts with the label json

[FIXED] Converting MySQL result array to JSON

Issue I want to convert my database query's result array to JSON format in PHP. Here is my code…

[FIXED] MultiIndex dataframe into Json

Issue I have Datframe with Multiindex and I want to transfer it to Json this is Datframe This is …

[FIXED] Data manipulation to nested dictionaries?

Issue I have some data that looks like this: this_data = [{ "Name": "Bluefox&qu…

[FIXED] Retrieving JSON Array data from Oracle CLOB column

Issue I am having an issue getting data from a JSON array attribute inside some JSON data which is …

[FIXED] How secure is format() for dynamic queries inside a function?

Issue After reading Postgres manual and many posts here, I wrote this function tacking in mind all …

[FIXED] Dynamic SQL select multiple columns based on json field(s) without exposing SQL Injection risks

Issue I'm creating a 'select colA, colB, colC, ...' stored proc, and I want the choice …

[FIXED] There's a count difference between Druid Native Query and Druid SQL when using query

Issue I have a problem with Druid Query. I wanted to get data count with hour granularity. So, I …

[FIXED] Mongoimport of JSON file

Issue I have a JSON file consisting of about 2000 records. Each record which will correspond to a …

[FIXED] Oracle DB select query returning the data in form of array instead of json array using nodejs

Issue My DB select result { "metaData": [ { "n…

[FIXED] Oracle.ORDS: How to return column as a JSON array?

Issue I have a master table and a detail table. I want to make a "GET" request to get som…

[FIXED] decoding JSON-string and insert in SQL-database (sqlite3)

Issue I want to decode a JSON-formated string and insert it in a SQL-database via MySQL. import js…

[FIXED] Convert Json with array of arrays to columns in Sql server

Issue I have the json (example)

[FIXED] How to query all system under SystemTypes in SQL database in a json format

Issue I have a SQL table like below class="s-table"> GroupID CountryName CityNam…

[FIXED] Mongoose - Push objects into nested array

Issue I am trying to push every object inside of an array into an array using Mongoose. This is an…

[FIXED] records inserted in a sqlite table are the same for each row

Issue I have a JSONArray which contains many records. I want to compare a string inside those objec…

[FIXED] How to query nested json with internal arrays in Spark on basis of equality check

Issue I have a nested json structure loaded into a dataframe in spark. It contains several layers o…

[FIXED] How to convert mysqli result to JSON?

Issue I have a mysqli query which I need to format as JSON for a mobile application. I have manag…

[FIXED] How would I join two tables in MySQL (many to one) and get a specific JSON output (as shown below)

Issue How would I join two tables in MySQL (many to one) and get a specific JSON output (as shown b…

[FIXED] Returning a complex sql with joins as an array of json objects

Issue Using a sql query, how can I return an array of json objects that looks like this: { &quo…

[FIXED] How to query a json column for empty objects?

Issue Looking to find all rows where a certain json column contains an empty object, {} . This is p…