Category "json"

Get empty result api firebase [FCM]

I've saved some of my mobile registration_codes that are connected with my development environment of Firebase. Once I send a manual notification by the api I r

Json_Encode not returning html even i try to encode JSON_HEX_QUOT | JSON_HEX_TAG

I want to return HTML from PHP. I found a solution from StackOverflow which is insert JSON_HEX_QUOT | JSON_HEX_TAG after array in json_encode but it does not wo

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(ti

Java application for sorting and selecting

I need to develop a simple application for sorting and selecting data according to predefined rules. The application must be able to work with JSON lists of obj

Send POST data via raw JSON with Postman

I've got Postman (the one that doesn't open in Chrome) and I'm trying to do a POST request using raw JSON. In the Body tab I have "raw" selected and "JSON (appl

Python conversion from JSON to JSONL

I wish to manipulate a standard JSON object to an object where each line must contain a separate, self-contained valid JSON object. See JSON Lines JSON_file =

Multiple objects serialization

I am making a ToDoList-Console app that needs serialisation of multiple objects. There are 2 task classes: Simple task Complex task I need a method that seriali

How to generate multiple json in vertical column in Excel VBA?

Using excel macro The first line is the json file name, and the second and subsequent columns are the values. With the first column as the key to the json obj

What HTTP code response to use when payment fails?

What HTTP code to use when processing payments / dealing with credit cards? For instance: Not enough funds Unable to retrieve funds (when no reason is given)

Produce JSON by RESTful web service in Spring Boot?

My problem: I don't returns Json but an array. So, I will wish Json return: My repository interface: public interface SuiRepository extends JpaRepository<

How to deserialize interfaces with Newtonsoft Json.Net

I have this class hierarchy : public class ProxyBotsSnapshotLogEntryDetails : IBotsSnapshotLogEntryDetails { public ICollection<IBotSnapshot> Snapsho

How to generate JSON Stringer in Android for this format

I need to send data to database in this format - {"param1":"value1", "param2":"value2", "param3": {"username": "admin", "password": "123"}} How to generate

Convert two types into a single type with Serde

I'm writing for a program that hooks into a web service which sends back JSON. When a certain property isn't there it provides a empty object, with all its fie

JAVA - JSON Serialize a list of enum to a class

I have this enum: public enum Days implements Serializable { MONDAY, TUESDAY, WEDNESDAY, ... } I want to use it in a Store class: public cl

How to install JQ on Mac on the command line?

I need to know the most efficient way of installing JQ on Mac (El Capitan). The code is downloaded to my Mac but I would like to know how I can install and oper

How to load data in one fragment in Android

I want show 3 fragments in my Activity and load data from json in any fragments! I want show each json data into one fragment, but in my application show all of

Check if the response of a get api is a proto object

I fetch a proto object from an api , is there anyway I can validate that the response is a proto object. One thing which I did was check content-type as mentio

Coldfusion cfhttp multipartType - How do I send JSON and file in same request?

I'm up against an API that has very sparse documentation. I've tried everything (more below) but the end result is a response from the 3rd party server: The giv

discord.py add different str object to different users

So I'm trying to make a command that adds the name of a song to an user. I just don't understand how I should do that. I tried looking on the dictionary documen

Access quoted_status object in Tweepy API.search_tweets

I have trouble in accessing parts of the objects that get returned from Tweepy's search_tweets API. I can easily navigate through most of the objects, but someh