Category "json"

If statement in Postman tests

I work in Postman and I want to build the test construction like that: var login_status = pm.environment.get("LOGIN_STATUS"); var jsonData = pm.response.json();

Javascript control data flow by JSON

I have a web application makes in JQuery + KnockOut that reads all data in a JSon format from a web service. The data are reloaded and reparse every seconds wit

How can I make Laravel return a custom error for a JSON REST API

I'm developing some kind of RESTful API. When some error occurs, I throw an App::abort($code, $message) error. The problem is: I want him to throw a json form

Using jq to stream, filter large json file and save output as csv

I have a very large json file I would like to stream (using --stream) and filter with jq, then save it as a csv. This is the sample data with two objects: [{"_i

Replace null values to empty values in a JSON OBJECT

Hi I've got a JSON object provided by an ajax request. Some of the values inside the json appears as null, but I want an empty String instead My sample of cod

How to turn off or handle camelCasing in JSON response ASP.NET Core?

I'm running through a WintellectNOW course on ASP.NET Core/Web API/Angular 2. I have the API portion implemented, but for whatever reason, the JSON that is bein

Post JSON Object RestSharp v107

I have to post this json data: JSON.stringify(dataRest) is: {"Ds_MerchantParameters":"eyJEU19NRVJDSEFOVF9BTU9VTlQiOiI3Myw4NCIsIkRTX01FUkNIQU5UX0NVUlJFTkNZIjoiOT

JSON reader was expecting a name but found ':'. in Mongodb Java

I am storing my data from external file to mongodb in localhost. it's quite huge dataset of volume 1.70GB with ~10 million tweets. While importing from file to

How to flatten multilevel/nested JSON?

I am trying to convert JSON to CSV file, that I can use for further analysis. Issue with my structure is that I have quite some nested dict/lists when I convert

Error: "Package firebase-functions has been ignored because it contains invalid configuration" - only occurs on Mac M1, not on Windows

When I try to build my react native app in both android and ios on my Mac M1, I get this error.....it does not occur when I build on Windows: Package firebase-f

Error: "Package firebase-functions has been ignored because it contains invalid configuration" - only occurs on Mac M1, not on Windows

When I try to build my react native app in both android and ios on my Mac M1, I get this error.....it does not occur when I build on Windows: Package firebase-f

How to make a JSON object out of getAllResponseHeaders method

I am currently writing a google chrome extension, and I need to find out information about websites' response headers. In order to do this, I used the getAllRes

How to make a JSON object out of getAllResponseHeaders method

I am currently writing a google chrome extension, and I need to find out information about websites' response headers. In order to do this, I used the getAllRes

Scraping network traffic data

I'm well aware of scraping webpages with requests, BS, and a few other tools, but I can't seem to find a way to create a program that scrapes stuff found in the

How to use XML response in react-native

I am developing an mobile application by react-native, I have to call a odata service which returns XML and I need to convert that to json object. How should I

"SyntaxError: Unexpected token < in JSON at position 0"

In a React app component which handles Facebook-like content feeds, I am running into an error: Feed.js:94 undefined "parsererror" "SyntaxError: Unexpected

ModelSerializer field validation for empty string

I'm having a problem with django rest framework. My front is posting data to drf, and one of the fields could be null or an empty string "". # models.py class

Major rearrangement of pandas DataFrame containing nested lists and dictionaries ( CFBD (College Football Database))

The College Football Database (cfbd) contains all team ranks for each week of every college football season going back to 1937.I am trying to set up data from t

Converting Protobuf3 with enum to JSON in Go

How can I convert grpc/protobuf3 message to JSON where the enum is represented as string? For example, the protobuf message: enum Level { WARNING = 0;

How to parse json format output of : kubectl get pods using jsonpath

How to parse the json to retrieve a field from output of kubectl get pods -o json From the command line I need to obtain the system generated container name