The key method will be \AKlump\Http\CollectionJson\CollectionBase::import
, which converts JSON strings into the appropriate object based on it's format.
You can also create a Collection object from json using Collection->setContent().
Cast any object to string to get it's JSON equivalent.
Take a look at the class CollectionJsonToJson
.