add json serialization to Build