# SerializeToBytes Method Serializes an object to a byte array. ## Definition **Namespace:** CapyKit.Helpers **Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0+735d7c4c91a8ae04c2d8cae4ce85ddf4909e5b7d **C#** ``` C# public static byte[] SerializeToBytes( Object obj ) ``` **F#** ``` F# static member SerializeToBytes : obj : Object -> byte[] ``` #### Parameters
  Object
The object.
#### Return Value Byte[] A `JSON` encoded string. ## See Also #### Reference SerializationHelper Class CapyKit.Helpers Namespace