HTTP requests and JSON parsing in Python

References https://stackoverflow.com/questions/6386308/http-requests-and-json-parsing-in-python

Continue reading »

JAX-RS application without an Application subclass

build.gradle

web.xml

HelloWorldResource.java

References http://stackoverflow.com/questions/22994690/which-init-param-to-use-jersey-config-server-provider-packages-or-javax-ws-rs-a https://jersey.java.net/documentation/latest/deployment.html#deployment.servlet.3.pluggability.noapp

Continue reading »

Remove JSON element

References http://stackoverflow.com/questions/1219630/remove-a-json-attribute http://stackoverflow.com/questions/5310304/remove-json-element

Continue reading »

Passing multiple POST parameters to Web API Controller Methods

C# :

JavaScript :

Continue reading »

How To Get ASP.NET Web API to Return JSON

first remove xml format :

accepts text/html requests and returns application/json responses :

Register like so:

References http://stackoverflow.com/questions/9847564/how-do-i-get-asp-net-web-api-to-return-json-instead-of-xml-using-chrome https://github.com/aspnet/Mvc/issues/1765

Continue reading »

Serialize Object to JSON in C#

References : http://stackoverflow.com/questions/6201529/turn-c-sharp-object-into-a-json-string-in-net-4

Continue reading »

Serialize Object to JSON in Java

References : http://stackoverflow.com/questions/10930624/creating-json-objects-directly-from-model-classes-in-java

Continue reading »