It will be useful if Chain will implement JsonSerializable interface to use Chain values in json_encode.
Activity
Add JsonSerializable interface to Chain