toJson

Converts SDK object to JSON-compatible object