Serializes Java object into JSON string using JSON.toJSONString() with Fastjson
Java Code Examples for com.alibaba.fastjson.JSON.toJSONString() This method to serializes the specified Java object into JSON string.
Java Code Examples for com.alibaba.fastjson.JSON.toJSONString() This method to serializes the specified Java object into JSON string.
How to serializes an object into JSON String in Java using the ObjectMapper.writeValueAsString() method Jackson library
In below code example you will learn how to use org.apache.commons.codec.digest.DigestUtils class in Apache Commons Codec to generate SHA-1 string in Java.
In this tutorial you will learn how to encoding and decoding a String in Java using Apache Commons Codec library. The library provide org.apache.commons.codec.binary.Base64 class with different methods to encode and decode data.
In this tutorial you will learn simple step by step to write an Java application which using Embedding Jetty API to creating a static file server.
In this turial we will go through a list of example to show you how use java.util.ArrayList in Java program. You will learn how to adding, updating, getting, sorting and other operations on elements of an ArrayList.
In this tutorial we will learn how to use the java.util.ArrayDeque class, a member class of Java Collections Framework. We will go through different examples to see how this class suppport methods that allow you to insert and retrieves element in both front and end of the element list.
In this blog post we will learn the step by step guide to configure gradle build file in order to generate Java classes from a WSDL file. This configure will be useful when you are working on project that related to SOAP web service.
As a Java developer if you are working with financial systems or developing systems that need granularity in your calculation then you should thinking about BigDecimal. BigDecimal is an immutable class, provides in java.math package. It consists of operations for arithmetic, scale manipulation, rounding, comparison, hashing, and format conversion. In this blog post we will learn how to use BigDecimal through a list of examples.
In this blog post we will go through 5 useful open source libraries to serialization and deserialize JSON data in Java application. For each library we will write a simple code sample to show you how to use the library to convert Java object to a JSON string and vice-versa.