Skip to content

Latest commit

 

History

History
12 lines (9 loc) · 314 Bytes

Serializing.md

File metadata and controls

12 lines (9 loc) · 314 Bytes

##Serializing JSON

LoganSquare can serialize objects to an OutputStream or a String. Here's a sample:

    // Serialize it to an OutputStream
    OutputStream os = ...;
    LoganSquare.serialize(image, os);
    
    // Serialize it to a String
    String jsonString = LoganSquare.serialize(image);