Articles tagged in: Gson



Gson Builder — Pretty Printing

After more than fifteen function-relevant Gson tutorials we'll move to something more developer focused. By default Gson will create minified JSON strings. This is important to reduce the amount of data being transferred over the network. However, especially with large models, for us developers it can be challenging to read …

Continue Reading

Gson Advanced — ProGuard Configuration

If you're using the code obfuscator ProGuard before releasing apps, this will be a valuable tutorial for you. We'll go through a standard ProGuard configuration, which should prevent unexpected runtime exceptions in your apps when you're using ProGuard and Gson. If you're not using ProGuard, you can check our other …

Continue Reading

Gson Builder — HTML Escaping

In this blog post, we'll explore an interesting behavior of Gson: HTML escaping. By default, Gson escapes typical HTML characters, like < or > to \u003c and \u003e. If your server can handle these tags just fine, you might be interested in disabling this behavior. In this tutorial we'll show …

Continue Reading
Page 1 of 5

Explore the Library

Find interesting tutorials and solutions for your problems.