
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who

Writing clean code… when the bugs aren’t looking.
About
Developer by passion, debugger by instinct. Forever building, occasionally breaking, constantly evolving.
Aishwarya Naglot has Published 180 Articles

Aishwarya Naglot
1K+ Views
To create a JSON using the Jackson Tree Model in Java, we can use the ObjectMapper class. The ObjectMapper class is part of the Jackson library and is used to convert Java objects to JSON and vice versa. To use the Jackson library, we need to add it to our ... Read More

Aishwarya Naglot
160 Views
Enabling version support means that the Gson library will be able to handle multiple versions of the same class. We use this when we have a class that has been modified and we want to be able to deserialize JSON data that was created using an older version of the ... Read More

Aishwarya Naglot
5K+ Views
What is a Palindrome? A palindrome is a number, string or any data value, which reads the same from backwards. i.e. If we reverse a value and compare it with its original value, the result should be true. For example, strings like "ABA", "RADAR", "BABAB" and numbers like 121, 12321 ... Read More

Aishwarya Naglot
2K+ Views
While parsing a JSON String to or from a Java object, by default, Gson tries to create an instance of the Java class by calling the default constructor. In the case of Java, if a class doesn’t contain a default constructor or we want to do some initial configuration while ... Read More

Aishwarya Naglot
5K+ Views
Deserializing a JSON to a Java object means converting a JSON string into a Java object.The deserialize() Method of the Flexjson Library We will be using the Flexjson library to deserialize a JSON to a Java object in Java. The Flexjson library is a lightweight library that is used for serializing as ... Read More

Aishwarya Naglot
328 Views
Pretty printing JSON is a process of formatting our JSON data to make it more readable and good-looking.The prettyPrint() Method of Flexjson We will be using the Flexjson library to pretty print JSON in Java. The Flexjson library is a lightweight library that is used for serializing as well as ... Read More

Aishwarya Naglot
2K+ Views
The Jackson is a library for Java and it has very powerful data binding capabilities and it also provides a framework to serialize custom java objects to JSON and deserialize JSON back to Java object. Ignoring Null and Empty Fields Using Jackson The Jackson library provides @JsonInclude annotation, which controls ... Read More

Aishwarya Naglot
2K+ Views
Sometimes, we may need to parse a JSON into a Gson tree model in Java. For example, we may need to parse a JSON string into a tree model when we want to manipulate the JSON data in a more easy way.The getAsJsonObject() Method The Gson library is used to ... Read More

Aishwarya Naglot
4K+ Views
When we have a JSON object and want to change a specific field name for some reason, we can use the Jackson library in Java.The Jackson Annotation @JsonProperty The Jackson Annotation @JsonProperty is used on a property or method during the serialization or deserialization of JSON. It takes an ... Read More

Aishwarya Naglot
3K+ Views
Sometimes we need to exclude certain fields from the JSON output. For example, if we have a field that contains sensitive information, we may not want to include it in the JSON representation of the object. In such cases, we can use the Expose annotation provided by Gson. The Gson ... Read More