Questions tagged [json]

JSON (JavaScript Object Notation) is a serializable data interchange format intended to be machine and human readable. Do not use this tag for native JavaScript objects or JavaScript object literals. Before you ask a question, validate your JSON using a JSON validator such as JSONLint (https://jsonlint.com).

100,148 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
69votes
0answers
2kviews

Sinch API in an Angular 2 project times out on onCallProgressing

We implemented Sinch in an angular 2 web application. Everything works fine, except when I try to call a user using the sinch phone demo. When the app is running in the foreground it will ring and the ...
user avatar
  • 1,175
28votes
3answers
2kviews

How can I serialize a jgrapht simple graph to json?

I have a simple directed graph from jgrapht and I am trying to serialize it into a JSON file using jackson as follows: ObjectMapper mapper = new ObjectMapper(); File output = new File("P:\\tree....
user avatar
  • 281
19votes
1answer
2kviews

Owin Middleware vs ExceptionHandler vs HttpMessageHandler (DelegatingHandler)

Please anyone give me some idea how following three modules work together in asp.net Web API 2.1 Owin Middleware HttpMessageHandler (or DelegatingHandler) ExceptionHandler What I am trying to do is ...
user avatar
17votes
0answers
3kviews

Losing precision when passing numbers through the JSONDecoder in Swift 4

I'm sending some JSON data to our server and in the process having issues when encoding certain values with the new Swift 4 JSONDecoder. Take this playground example: import Foundation struct ...
user avatar
  • 1,259
16votes
1answer
402views

Updating AngularJS scope after validating search form in Symfony2

Hi fellow developers, We have to rewrite a software application in Symfony2 with AngularJS, we use Symfony2 for the MVC purpose and AngularJS for the useful functions. Here's our problem, we first ...
user avatar
15votes
1answer
472views

Heroku - configuring scheduler in app.json

Is there a way to get the Heroku Scheduler to be configured with a script to run frequency Using app.json addons configuration, so that it is set up automatically from a Github "Deploy to Heroku" ...
user avatar
  • 800
15votes
1answer
6kviews

How to disable caching in Swagger UI

I am using swagger UI for documenting the APIs. I have deployed the Ui and node server( that has JSON) using docker. After deployment, when I make changes in JSON file, the same is not getting ...
user avatar
  • 2,642
15votes
0answers
1kviews

How to disable object reference when using @JsonIdentityInfo?

When I use JsonIdentityInfo , for example @JsonIdentityInfo(generator = ObjectIdGenerators.IntSequenceGenerator.class, property = "@dataSet") The Jackson will replace object, which has appear to id ,...
user avatar
  • 2,409
13votes
1answer
700views

Aquery ajax request seems not starting in android

I think the code that I build for getting data from the server in JSON is not starting. In the logcat there is no text from "log.v". Also, the code that I made seems not good with the try-catch all ...
user avatar
13votes
2answers
3kviews

Grails REST API - Render JSON with paging, metadata and custom include fields from params

I'm looking for a best way to design a custom JSON response for RESTful API in Grails based on this presentation Design Beautiful REST + JSON APIs by Les Hazlewood. Here is my Domain class class ...
user avatar
  • 1,181
13votes
1answer
5kviews

An exception in Json.NET: Token PropertyName in state "Start" would result in an invalid JavaScript object

I see the error in my prod server log; can u give me any hint about what kinds of situations would trigger the error? Thanks. Token PropertyName in state Start would result in an invalid JavaScript ...
user avatar
  • 32.3k
12votes
0answers
7kviews

Swift boringssl_metrics_log_metric_block_invoke(144) Failed to log metrics

I just get an error "[boringssl] boringssl_metrics_log_metric_block_invoke(144) Failed to log metrics" while to get JSON data from API link. Before it worked and I just updated Xcode version ...
user avatar
  • 121
12votes
1answer
653views

How can I use http request headers for content negotiation in a Mashaller?

My app supports protobuf and JSON serialzation. For JSON serialization I use com.trueaccord.scalapb.json.JsonFormat, my dtos are generated from proto definitions. The com.trueaccord serializer wraps ...
user avatar
  • 1,984
12votes
0answers
966views

Measuring rails json api with rack mini profiler

How do we get rack-mini-profiler to show in a rails json api? I believe this was asked here: How to profile a rails controller that returns a json response with rack-mini-profiler? but the only answer ...
user avatar
12votes
1answer
6kviews

HttpClient.ReadAsAsync<T> Returns Empty Object When Using [Serializable]

I'm working with the Microsoft ASP.NET Web API Client Libraries (version 4.0.30506 since I have to run on .NET Framework 4.0) to interface with a .NET web API. I have confirmed that the data is being ...
user avatar
  • 2,899

15 30 50 per page
1
2 3 4 5
6677