Category "json"

Can PostgreSQL JOIN on jsonb array objects?

I am considering switching to PostgreSQL, because of the JSON support. However, I am wondering, if the following would be possible with a single query: Let's s

Generate JSON object from a dynamic set of input functions

I am trying to write a function (f_all) that basically just calls other "partial" functions (e.g. f_1,f_2,f_3) and merges the results of them into one final JSO

How to convert camelcase to snake case in Javascript? [closed]

I want to convert a string of that is in camel case to snake case using TypeScript. Remember that the "snake case" refers to the format style

Expo app icon instead of my app icon - react native

SDK Version: 41.0.0 Platforms(Android/iOS/web/all): android Add the appropriate “Tag” based on what Expo library you have a question on. Hi Guys, I&

How to validate for length of an integer in Json Schema?

Simulator: https://www.jsonschemavalidator.net/s/L3FmJnoE It looks like json schema validation does not check for regex patterns for integers. How to validate f

Data Transfers to Big Query error "Error while reading data, error message: JSON table encountered too many errors, giving up. Rows: 1; errors: 1"

Hello im currently trying to establish daily data transfers from Google Cloud Storage to Big Query tables. Theses tables are just meant to store raw data (JSON

How to convert CSV to multi level nested JSON in Python

How to convert CSV to nested JSON in Python This is related to something like this. I want to convert a flat dataframe file to Nested JSON format: I have a csv

Alter JSON file in CLOUD SHELL Terminal

this is my file : $ cat INPUT-JSON {"endpointId": "1411183591831896064", "instance": "[{age: 40.77430558, ClientID: '997', income: 44964.0106, loan: 3944.219318

Google Cloud Functions: Return valid JSON

I´m trying to call a Google Cloud Function from my Flutter App using the cloud_functions package. This is my Cloud Function: export const helloWorld = f

How to update json file sorted by number? - Python

For example I have a JSON file with a mess number { "data": { "31": { ... }, "52": { ... }, "

Why typescript keep giving me No inputs were found in config file error?

Why typescript keep giving me No inputs were found in config file error? When I use tsconfig.json in vscode, but when I try to build it, it gives me a 'No input

Restructuring the object using different name [Object manipulation]

I have a use case where I have to restructure the object. Initial I have this object { name: 'Tommy Kerar', mandatoryRequirements : [{ name:

Error: {"data": "foreach() argument must be of type array|object, string given", "message": "" in React Native

i have to send this Array object to the API when i post the API data it shows me this error: Error: {"data": "foreach() argument must be of type array|object,

PySpark - Convert a heterogeneous array JSON array to Spark dataframe and flatten it

I have streaming data coming in as JSON array and I want flatten it out as a single row in a Spark dataframe using Python. Here is how the JSON data looks like

How to fix missing double quotes issue when parsing JSON data?

I am running a piece of code in Python3 where I am consuming JSON data from the source. I don't have control over the source. While reading the json data I am g

parse libcurl response with nlohmann json or rapidjson

My libcurl code returns me a json string: {"object":"user","attributes":{"id":000,"admin":false,"username":"un","email":"[email protected]","first_name":"leopold

Hibernate createNativeQuery returns duplicate rows

I have 2 database tables Customer and Items with 1 -> many relation. To fetch data from database i am using the following query. select customer.id, cust

How to find and replace a part of a value in json file

I have a json file that I am using as a Dictionary in python. The json file is really long with 10k+ records. I need to replace the $home part in the "iscatego

Cannot find a differ supporting object '[object Object]'. NgFor only supports binding to Iterables such as Arrays

here is code i am trying to access object of objects. template <table class="table table-striped"> <tr *ngFor="let response of response"> &

How do I test periodic fetching json in Angular

I want to test periodic(1second) fetching json into components. I made setInterval() function in the component's constructor. That function is to call apicallse