Example usage for com.badlogic.gdx.utils Json writeFields

List of usage examples for com.badlogic.gdx.utils Json writeFields

Introduction

In this page you can find the example usage for com.badlogic.gdx.utils Json writeFields.

Prototype

public void writeFields(Object object) 

Source Link

Document

Writes all fields of the specified object to the current JSON object.

Usage

From source file:es.eucm.ead.engine.assets.serializers.DefaultSerializer.java

License:Open Source License

@Override
public void write(Json json, T object, Class knownType) {
    json.writeObjectStart(object.getClass(), knownType);
    json.writeFields(object);
    json.writeObjectEnd();/*  w ww. j a va2s  .  co  m*/
}