Example usage for javax.json JsonObject getClass

List of usage examples for javax.json JsonObject getClass

Introduction

In this page you can find the example usage for javax.json JsonObject getClass.

Prototype

@HotSpotIntrinsicCandidate
public final native Class<?> getClass();

Source Link

Document

Returns the runtime class of this Object .

Usage

From source file:com.dhenton9000.json.processing.FasterXMLJSONTests.java

@Test
public void testUsingStandardJSR() {

    StringReader sr = new StringReader(TEST_STRING);
    JsonObject restaurantObject;
    try (JsonReader myreader = Json.createReader(sr)) {
        restaurantObject = myreader.readObject();
    }//from   ww  w.j a  va  2s .c  om

    LOG.debug("class is " + restaurantObject.getClass().getName());

}