O'Reilly logo

Libgdx Cross-platform Game Development Cookbook by Alberto Cejas Sánchez, David Saltares Márquez

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

JSON serialization and deserialization

JSON stands for JavaScript Object Notation and it is an open standard, human readable format to transmit objects formed by attribute-value pairs. It has become very popular to transmit data between clients and servers, but it is also heavily used in games as an alternative of XML.

Originally, it came from JavaScript, although it is actually language agnostic as there are many utilities to write and read JSON in virtually every widely used language. Being less verbose than XML and easier to parse are probably its main advantages when compared to the aforementioned format.

JSON is really awesome, but in order to be able to follow this recipe, make sure you are familiar with the basics. Check out http://www.json.org ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required