Category "json"

Is there a java/JS library which can compare two json files and produce comparison result as html?

The idea behind the question is to have some library/tool which can compare two json strings and produce comparison result as html. E.g. the way some online com

how to use json file in html code

I have json file mydata.json, and in this file is some json-encoded data. I want obtain this data in file index.html and process this data in JavaScript. But a

Uncaught SyntaxError: Unexpected token p in JSON at position 15

I have the Json data , which I am trying to parse in the following fiddle but its throwing error Uncaught SyntaxError: Unexpected token p in JSON at posit

Can anyone explain how to get all the mismatch between two responses in karate?

Like if I have two JSON as below and I want to check the mismatch between those JSON 1: { name:'john', contact:'123', country:'america' } JSON 2

JSON.parse for array of object

Server returns the array of object in JSON. It looks so: {"d":"[ {\"Id\":1,\"IsGood\":true,\"name1\":\"name1dsres\",\"Name2\":\"name2fdsfd\",\"name3\": \"na

Microsoft Teams: "Something went wrong" while installing my custom app into my organization's team

I have created an app for Microsoft Teams that one can add to a team. The app is a chatbot created with the Microsoft Bot framework. I have already made two oth

Gson.toJson object contain URL

I am using Gson.toJSON method. My pojo contains one of attribute as URL string. Strange thing is Gson converter changes URL characters output is: /myApp/myAct

Avoiding scientific notation

I am experimenting using Go to interact with a Database and am running into issues when dealing with Decimal fields. In this database most fields that are bas

Get nested json value using ASP Classic and aspJSON

Good afternoon, I'm using aspJSON (https://github.com/rcdmk/aspJSON) to analyze a json that I have below: { "pedido":1507WSC, "destino":"Brasil", "Pas

Send Discord Embed to Webhook with XHR Request

I am writing a chrome extension in which an embed should be sent to a discord webhook. In chrome extensions, you can't import modules, so I must use XMLHttpRequ

gcloud auth activate-service-account [ERROR] Please ensure provided key file is valid

I've spent already several hours with this problem but it seems that I can't activate a service account to develop locally an App Engine project (If I deploy te

TypeError: Converting circular structure to JSON in nodejs

I am using request package for node.js Code : var formData = ({first_name:firstname,last_name:lastname,user_name:username, email:email,password:password});

Use ScriptControl to parse JSON in VBA: transform result to dictionaries and collections

I would like to use Microsoft ScriptControl to parse a JSON string in VBA, and then transform the resulting Object into Dictionary and Collection objects. I alr

How to format a bash array as a JSON array

I have a bash array X=("hello world" "goodnight moon") That I want to turn into a json array ["hello world", "goodnight moon"] Is there a good way for me

Scrapy: How to output items in a specific json format

I output the scraped data in json format. Default scrapy exporter outputs list of dict in json format. Item type looks like: [{"Product Name":"Product1", "Cate

Unrecognized token error while converting JSON String to Java Object List

here is the JSON string which I want to convert as java object List. String manuallyVerificationRemarks = "[{ "logedInUserName": "forum-admin", "action

How to exclude property from Json Serialization

I have a DTO class which I Serialize Json.Serialize(MyClass) How can I exclude a public property of it? (It has to be public, as I use it in my code somewhe

How to check whether a given string is valid JSON in Java

How do I validate a JSON string in Java? Or could I parse it using regular expressions?

In GraphQL what's the meaning of "edges" and "node"?

I am consuming a GraphQL endpoint and I get results that contain edges and node tags. I am supplying a clean JSON structure for my query, so this doesn't make s

mustache.js date formatting

I have started using mustache.js and so far I am very impressed. Although two things puzzle me. The first leads on to the second so bear with me. My JSON {"g