Category "json"

Creating employee in Xero PHP SDK

I have copied the sample code from the Xero developers site but keep getting an error with the DateOfBirth here is the code <?php require_once(__DIR__ . '/ve

Convert JS object to JSON string

If I defined an object in JS with: var j={"name":"binchen"}; How can I convert the object to JSON? The output string should be: '{"name":"binchen"}'

Multilines message into WhatsApp API Using Textarea, POST and json playload with PHP

i am using WhatsAPP API of One of Facebook Partner. I have a form with text area , Message content of textarea is POSTed to sendWhatsApp.php and inside of sendW

Cant read JSON file imported from MongoDB using pandas

I am trying to read a json file into a pandas dataframe, the import from MongoDB from completed as below client = pymongo.MongoClient("localhost", 27017)

How can I return two entity objects from web api?

What I am trying to do is getting two entity and returning from a single return using Json Object so getting this exception:- Self referencing loop detected for

Ajax chained dropdown not loading/working correctly on the LIVE server

I have a country, state and city chained dropdown which loads a state depending on the country and loads the cities depending on the state. The code works perfe

Maps vs Objects vs Arrays for core data structure in React app with document database

My app aims to allow communal viewing+editing of what are essentially tables. It's a react app (with typescript), so being useable as react component state is r

TreeView To JSON

From the JSON file, I was able to build a treeView in windows forms. Now I need to do the reverse process - save the tree to a JSON file after pressing the butt

Expected type 'object'. Found 'string|false'.intelephense(1006) on json_encode()

Please find my code sample below where I take the POST input data and convert into JSON after which I check if the data has the required info or not. I'm using

How to deserialize this dynamic keys JSON to Java custom Pojo using Jackson

I have a pretty complex json string that I would like to deserialize into custom Java Pojo, but Im not so sure how to do it. Here is the json: { "A": {

how to write or change a value in json file with angular

I have this json file. Can I write into this file or change a value without node js just angular? I want to change watch to true is it possible? [ {

Parse JSON Array from an api in java

I have an api that gives me this json array. How do i just get specific key value pairs for traceId? these are traces generated by zipkin but i want to store th

Querying a nested JSON file in Python without Indexing

I have the below Json file which I need to query to get the values of the keys inside 'validations' in a list for example the column_values_not_null output will

How to Handle API response model class if object is not Available in some situation on Same API Flutter Dart

I need an Help for API response handling. I've created model class to convert API res. My issue is on Type the API response is changed for example if type = 'Ap

Powershell replace values in target.json with values from source.json

I have a big target json file (parameters_general.json) where all common settings for a deployment are set. For each tier I have another json file (ex: paramete

How to access nested array

I am trying to access recipeIngredient in this array. I have tried this: <cfloop from="1" to="#ArrayLen(contents)#" index="i"> <cfoutput> #i.recip

How to properly prepare JsonWebKey for API request?

{ "client_name": "apk1", "scopes": [ "full" ], "jwks": { "keys": [ { "kty": "RSA", "e": "AQAB", "use": "sig"

Getting unwanted 0 in the front of array

I am working with Ajax, as request is success but not getting proper json response. In Response its getting like this 0{.....} What is the solution to this? MY

How do I check for presence of keys in the object of a JSON response in restAssured Java

I have an endpoint that returns the json response as below: "abc" : [ { "name" : "XZ", "id" : "1234", "action" : { "attributes" : {

Variable was never mutated...or Constant being used before initialized

So I'm wanting to get jsonMeals data back and use it outside of this function. However it seems no matter where I place my json variable I get an error. Changin