Adding some basic toJSON methods for container in rack/openscak