Phaser API Documentation

  Version: 
toJSON()

Description:

Returns an Object suitable for JSON storage containing all of the Camera viewport and rendering properties.

Returns:
Description:

A well-formed object suitable for conversion to JSON.

Since: 3.0.0