toJsonV1

Converts SDK object to JSON-compatible object.