2
votes
2answers
510 views

Which is simpler for REST client call to return JSON - JQuery/JavaScript or Spring RestTemplate?

I've been trying to hack up an annotated Spring MVC web app (have some experience with Spring but also rusty and not a super programmer) but it's proving pretty hard to call a URL of my web app which ...
0
votes
3answers
210 views

Why does Java require a servlet container for simple RPC service?

I have a big database controller which is written in Java. The controller reads information from the database, and interprets it into data structures which are then displayed in a CLI. Java was ...
1
vote
1answer
246 views

Is the escaping provided by the Google-Gson library enough to ensure a safe JSON payload?

I am currently using the Google-Gson library to convert Java objects into JSON inside a web service. Once the object has been converted to JSON, it is returned to the client to be converted into a ...
2
votes
1answer
89 views

Naming library which generates a JSON-req to a REST-API?

How would you call a library which generates a JSON-req to a REST-API so that you just work on object-level for creating a request? Many company wants to define it as an SDK, but is it a suitable ...
-1
votes
1answer
1k views

Google-Gson Converting JSon to CSV

What is the easiest way to convert a Json data to a String at CSV format ? I haven't read all the api yet but it seems that subclassing the default JSonWriter allows to remove unnecessary character ...
12
votes
2answers
998 views

Query language for JSON

I have a server which is returning very big JSON message and my client application is only dependent on part of this response. Client application needs to check if "xyz" property exist in JSON message ...
2
votes
3answers
497 views

What do you think of this Exception handling practice

I'm working on a project that includes a lot of creating/manipulating and reading JSONObjects and arrays but not in a systematic way. So there is JSON code everywhere. It is ok for me except that ...
3
votes
2answers
2k views

xml parser vs JSON parser performance in Java / C / C++

I am trying to understand which data format is better on embedded device communicating with Server over REST API. XML or JSON?. Is JSON parsing faster than XML parsing in Java / C and C++? I ...