Skip to content
Advertisement

REST api with only 1 object java

This code makes use of JSON-simple for connecting to an api:

JavaScript

Nothing get sent out though. Only warning is this:

JavaScript

Advertisement

Answer

Casting to a string is the solution.

JavaScript
User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement